add @since
This commit is contained in:
parent
f77d21b589
commit
47cd662af7
@ -136,11 +136,6 @@ public void filter( ContainerRequestContext containerRequestContext )
|
|||||||
securitySystem.authorize( authenticationResult.getUser(), permission, //
|
securitySystem.authorize( authenticationResult.getUser(), permission, //
|
||||||
StringUtils.isBlank( redbackAuthorization.resource() ) //
|
StringUtils.isBlank( redbackAuthorization.resource() ) //
|
||||||
? null : 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 );
|
log.debug( "isAuthorized for permission {}", permission );
|
||||||
|
@ -74,6 +74,14 @@ boolean isAuthorized( SecuritySession session, String permission )
|
|||||||
AuthorizationResult authorize( SecuritySession session, String permission, String resource )
|
AuthorizationResult authorize( SecuritySession session, String permission, String resource )
|
||||||
throws AuthorizationException;
|
throws AuthorizationException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 2.3
|
||||||
|
* @param user
|
||||||
|
* @param permission
|
||||||
|
* @param resource
|
||||||
|
* @return
|
||||||
|
* @throws AuthorizationException
|
||||||
|
*/
|
||||||
AuthorizationResult authorize( User user, String permission, String resource )
|
AuthorizationResult authorize( User user, String permission, String resource )
|
||||||
throws AuthorizationException;
|
throws AuthorizationException;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user