]> WPIA git - gigi.git/commitdiff
Fix: only allow affiliating with org when user is assurer.
authorFelix Dörre <felix@dogcraft.de>
Sun, 15 Mar 2015 08:25:08 +0000 (09:25 +0100)
committerFelix Dörre <felix@dogcraft.de>
Sun, 15 Mar 2015 08:55:00 +0000 (09:55 +0100)
src/org/cacert/gigi/pages/orga/AffiliationForm.java

index 0191756fcbfa82f4fdb04463408bb11a943d390b..ad988895b351d5c26e375813257ba881cbf5639c 100644 (file)
@@ -39,7 +39,7 @@ public class AffiliationForm extends Form {
             }
         } else if (req.getParameter("do_affiliate") != null) {
             User byEmail = User.getByEmail(req.getParameter("email"));
-            if (byEmail != null) {
+            if (byEmail != null && byEmail.canAssure()) {
                 o.addAdmin(byEmail, LoginPage.getUser(req), req.getParameter("master") != null);
                 return true;
             }