Hi folks!
So I've got a class that extends JiveActionSupport and I've tried the following:
Permissions permissions = this.authProvider.getCommunityPermissions(user.getID(), 2084);
System.out.println(permissions.hasPermission(Permissions.READ_DOCUMENT) || permissions.hasPermission(Permissions.COMMUNITY_ADMIN) || permissions.hasPermission(Permissions.SYSTEM_ADMIN));
System.out.println(permissions.value()+"");
2084 is the community id for a test community, and when I try it I get back:
false
0
I know that I can use this.getAuthenticationProvider().isSystemAdmin() to check whether someone is a system admin, but how can I see if they have access to the community?
Has nobody dealt with this issue before?