RequireRole class
Requires the user to hold role in their roles list.
- Implemented types
Constructors
- RequireRole(String role)
-
Creates a RequireRole requirement for
role.const
Properties
Methods
-
evaluate(
UserSecurityContext context) → bool -
Returns
trueifcontextsatisfies this requirement.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited