add @since
This commit is contained in:
parent
f77d21b589
commit
47cd662af7
|
@ -136,11 +136,6 @@ 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() )
|
||||
{
|
||||
log.debug( "isAuthorized for permission {}", permission );
|
||||
|
|
|
@ -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