Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package hudson.plugins.collabnet.auth;
 
Gives user permission if the user is authenticated.
 
public class CNAuthenticatedUserACL extends ACL {
    
If the user is authenticated, return true.

Parameters:
a current authentication.
p permission to check
Returns:
true if the user should have the permission.
    @Override
    public boolean hasPermission(Authentication aPermission p) {
        return a.isAuthenticated();
    }
New to GrepCode? Check out our FAQ X