public boolean isForbidden ( ) { if ( authorities . size ( ) == 0 ) { return false ; // If no restrictions, return false } boolean result = true ; for ( Authority priv : authorities ) { result = ! SecurityUtil . isGranted ( priv . name ) ; if ( requiresAll == result ) { break ; } } return result ; }
Returns true if access to the plugin is restricted .