add @since
This commit is contained in:
parent
f77d21b589
commit
47cd662af7
|
@ -136,12 +136,7 @@ public class PermissionsInterceptor
|
|||
securitySystem.authorize( authenticationResult.getUser(), permission, //
|
||||
StringUtils.isBlank( redbackAuthorization.resource() ) //
|
||||
? null : redbackAuthorization.resource() );
|
||||
/*
|
||||
if ( securitySystem.isAuthorized( securitySession, permission, //
|
||||
StringUtils.isBlank( redbackAuthorization.resource() ) //
|
||||
? null : redbackAuthorization.resource() ) )
|
||||
*/
|
||||
if ( authenticationResult != null && authorizationResult.isAuthorized() )
|
||||
if ( authenticationResult != null && authorizationResult.isAuthorized() )
|
||||
{
|
||||
log.debug( "isAuthorized for permission {}", permission );
|
||||
return;
|
||||
|
|
|
@ -74,6 +74,14 @@ public interface SecuritySystem
|
|||
AuthorizationResult authorize( SecuritySession session, String permission, String resource )
|
||||
throws AuthorizationException;
|
||||
|
||||
/**
|
||||
* @since 2.3
|
||||
* @param user
|
||||
* @param permission
|
||||
* @param resource
|
||||
* @return
|
||||
* @throws AuthorizationException
|
||||
*/
|
||||
AuthorizationResult authorize( User user, String permission, String resource )
|
||||
throws AuthorizationException;
|
||||
|
||||
|
|
Loading…
Reference in New Issue