Module: Permissions Helper

Seeding module

Source:

Members

(inner, constant) rolesPermissionsMap

The roles to permissions map which has level-wise permissions list corresponding to the particular level.

Source:

Methods

(async, inner) populatePermissions(id)

This function populates all the permissions that user currently possess. There could be two types of permissions

  1. That is associated with a club The club id is encoded in the permission with $ as a delimiter (ex: clubs.update$1234resxdfty6)
  2. That is independent of club (ex: clubs.add)
Parameters:
Name Type Description
id String

Mongo User id

Source: