Members
Methods
# static exports.assertRole(role)
Ensures that role(s) are valid roles.
Parameters:
Name | Type | Description |
---|---|---|
role |
The role or an array of roles. |
If any of role(s) are not valid.
Meteor.Error
# static exports.isRole(role) → {boolean}
Predicate for determining if a string is a defined ROLE.
Parameters:
Name | Type | Description |
---|---|---|
role |
String | The role. |
True if role is a defined ROLE.
boolean