public static boolean isGroupAdmin(Authorization authToken) {
if(isSystemAdmin(authToken)) return true;
ForumFactory forumFactory = ForumFactory.getInstance(authToken);
ProfileManager manager = forumFactory.getProfileManager();
Iterator groupIterator = manager.groups();
if (!groupIterator.hasNext()) {
return false;
}
while (groupIterator.hasNext()) {
Group group = (Group) groupIterator.next();