On 02/23/2013 04:45 PM, JoelJ wrote:
private boolean userHasPermission(Permission permission) {
  ACL acl = Jenkins.getInstance().getACL();
  return acl.hasPermission(Jenkins.getAuthentication(), permission);
}

Too much work. Usually you would just use something like:

someBuild.checkPermission(Run.DELETE);

and proceed, since this will throw an exception if the permission is not 
granted.

Permission.READ

Do you mean Jenkins.READ?

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to