Namespace

api/role

api/role

Members

Object

# static constant exports.ROLE

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

View Source api/role/Role.ts, line 11

Array

# static constant exports.ROLES

The valid Roles in RadGrad.

View Source api/role/Role.ts, line 23

Methods

# static exports.assertRole(role)

Ensures that role(s) are valid roles.

Parameters:
Name Type Description
role

The role or an array of roles.

View Source api/role/Role.ts, line 39

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.

View Source api/role/Role.ts, line 30

True if role is a defined ROLE.

boolean