@Override public boolean isAdmin(Context c, EPerson e) throws SQLException { // if we're ignoring authorization, user is member of admin if (c.ignoreAuthorization()) { return true; } if (e == null) { return false; // anonymous users can't be admins.... } else { return groupService.isMember(c, e, Group.ADMIN); } }
@Override public boolean isAdmin(Context c) throws SQLException { // if we're ignoring authorization, user is member of admin if (c.ignoreAuthorization()) { return true; } EPerson e = c.getCurrentUser(); if (e == null) { return false; // anonymous users can't be admins.... } else { return groupService.isMember(c, Group.ADMIN); } }
&& (groupService.isMember(c, e, rp.getGroup()))) {
&& (groupService.isMember(c, e, rp.getGroup()))) {