_hasRole
Lets you check whether the current user, or some other Person, has the specified Role --
Function
The same Type -> _hasRole
(role) -> TrueOrFalse Type
- Receives -- The same Type
- A Person, or anything
- role
- A Role
- Produces
- True iff the specified Person has the specified Role.
If this function receives a Person, it checks that Person. Otherwise, it checks the current
user. These are both useful, in different situations.