Details
-
Improvement
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently if I want to check if a user is an administrator I either check the local sentry config file or make a call that is only accessible to sentry admin and check for an exception. Additionally, If I want to see if an specific configuration is enabled, I need to check the local sentry config which could bypass the sentry server config.
What I'd like is to have a method or two that allows this through the SentryPolicyServiceClient. e.g.
boolean client.isAdmin(String user)
boolean client.isOwnerPrivilegeEnabled()
boolean client.isOwnerPrivilegeWithGrantEnabled()