]> WPIA git - gigi.git/commitdiff
chg: reword error message to match conditions
authorINOPIAE <m.maengel@inopiae.de>
Fri, 16 Feb 2018 11:34:03 +0000 (12:34 +0100)
committerINOPIAE <m.maengel@inopiae.de>
Fri, 16 Feb 2018 11:34:03 +0000 (12:34 +0100)
Change-Id: Ica9a9fc26b8f35d07232669b4efde5ea0ac24cb2

src/club/wpia/gigi/dbObjects/Organisation.java

index c9754565744b0d107baee2515f802e2e2cae9fbe..0e1c8661fab8b5033072f9d9cb3603935e196dae 100644 (file)
@@ -152,7 +152,7 @@ public class Organisation extends CertificateOwner {
 
     public synchronized void addAdmin(User admin, User actor, boolean master) throws GigiApiException {
         if (actor == admin) {
 
     public synchronized void addAdmin(User admin, User actor, boolean master) throws GigiApiException {
         if (actor == admin) {
-            throw new GigiApiException("You may not add yourself as Organisation Admin. Ask another Organisation Agent to do so.");
+            throw new GigiApiException("You may not add yourself as Organisation Admin. Ask another Organisation Agent or Organisation Admin to do so.");
         }
         if ( !admin.canVerify()) {
             throw new GigiApiException("Cannot add person who is not RA Agent.");
         }
         if ( !admin.canVerify()) {
             throw new GigiApiException("Cannot add person who is not RA Agent.");