api/role

api/role

Members

(static, constant) exports.ROLE :Object

Source:

ROLE Provides ROLE.FACULTY, ROLE.STUDENT, ROLE.ADMIN, ROLE.ALUMNI.

Type:
  • Object

(static, constant) exports.ROLES :Array

Source:

The valid Roles in RadGrad.

Type:
  • Array

Methods

(static) exports.assertRole(role)

Source:

Ensures that role(s) are valid roles.

Parameters:
Name Type Description
role

The role or an array of roles.

Throws:

If any of role(s) are not valid.

Type
Meteor.Error

(static) exports.isRole(role) → {boolean}

Source:

Predicate for determining if a string is a defined ROLE.

Parameters:
Name Type Description
role String

The role.

Returns:

True if role is a defined ROLE.

Type
boolean