Namespace

api/role

api/role

Members

Object

# static constant exports.ROLE

ROLE Provides ROLE.ADMIN and ROLE.DEVELOPER.

View Source api/role/Role.js, line 12

Array

# static constant exports.ROLES

The roles in HACC-Hui.

View Source api/role/Role.js, line 22

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.js, line 40

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.js, line 30

True if role is a defined ROLE.

boolean