secure() Blocking Methods
The secure() Methods
secure() Methods// Verify the currently logged in user has at least one of those permissions,
// else throw a NotAuthorized exception
cbSecurity.secure( permissions, [message] );
cbsecure().secure( permissions, [message] );// Authorize that the user has ALL of the incoming permissions
cbSecurity.secureAll( permissions, [message] );
// Authorize that the user has NONE of the incoming permissions
cbSecurity.secureNone( permissions, [message] );Conditional Authorizations Using when()
when()when( permissions, success, fail )Last updated
Was this helpful?