X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fclub%2Fwpia%2Fgigi%2FdbObjects%2FGroup.java;h=556395b294a7fb7735bbaaf0a438ee9177cef8be;hb=265f081ad3db3fd6028a1c5573462e5a2eea973a;hp=1acc461b3e915d2b85cb6e786486396aa5ad6578;hpb=bccd4cc0dba0f89aa045b113bac46eb8cc1dab4e;p=gigi.git diff --git a/src/club/wpia/gigi/dbObjects/Group.java b/src/club/wpia/gigi/dbObjects/Group.java index 1acc461b..556395b2 100644 --- a/src/club/wpia/gigi/dbObjects/Group.java +++ b/src/club/wpia/gigi/dbObjects/Group.java @@ -8,16 +8,15 @@ import club.wpia.gigi.output.template.TranslateCommand; public enum Group implements DBEnum { SUPPORTER("supporter", "supporter", true, false, true), // - ARBITRATOR("arbitrator", "arbitrator", true, false, true), // - BLOCKEDASSURER("blockedassurer", "may not verify", true, false, false), // - BLOCKEDASSUREE("blockedassuree", "may not be verified", true, false, false), // - BLOCKEDLOGIN("blockedlogin", "may not login", true, false, false), // - BLOCKEDCERT("blockedcert", "may not issue certificates", true, false, false), // - TTP_ASSURER("ttp-assurer", "may verify via TTP", true, false, true), // + BLOCKED_AGENT("blocked-agent", "may not verify", true, false, false), // + BLOCKED_APPLICANT("blocked-applicant", "may not be verified", true, false, false), // + BLOCKED_LOGIN("blocked-login", "may not login", true, false, false), // + BLOCKED_CERT("blocked-cert", "may not issue certificates", true, false, false), // + TTP_AGENT("ttp-agent", "may verify via TTP", true, false, true), // TTP_APPLICANT("ttp-applicant", "requests to be verified via ttp", false, true, false), // CODESIGNING("codesigning", "may issue codesigning certificates", true, false, false), // - ORGASSURER("orgassurer", "may verify organisations", true, false, true), // - NUCLEUS_ASSURER("nucleus-assurer", "may enter nucleus verifications", true, false, true), // + ORG_AGENT("org-agent", "may verify organisations", true, false, true), // + NUCLEUS_AGENT("nucleus-agent", "may enter nucleus verifications", true, false, true), // LOCATE_AGENT("locate-agent", "wants access to the locate agent system", false, true, false), // VERIFY_NOTIFICATION("verify-notification", "wants to receive an email notification for any Verification they enter", false, true, false); @@ -75,7 +74,7 @@ public enum Group implements DBEnum { } public User[] getMembers(int offset, int count) { - try (GigiPreparedStatement gps = new GigiPreparedStatement("SELECT `user` FROM `user_groups` WHERE `permission`=?::`userGroup` AND `deleted` IS NULL OFFSET ? LIMIT ?", true)) { + try (GigiPreparedStatement gps = new GigiPreparedStatement("SELECT `user` FROM `user_groups` WHERE `permission`=?::`userGroup` AND `deleted` IS NULL OFFSET ?::INTEGER LIMIT ?::INTEGER", true)) { gps.setEnum(1, this); gps.setInt(2, offset); gps.setInt(3, count);