new PermissionLevels()
Creates a new PermissionLevels
Members
-
levels :Map
-
A cache of levels submitted with addLevel
-
readonly structure :validPermStructure
-
The current valid permissions structure
Methods
-
addLevel(level, brk, check) → {PermissionLevels}
-
Adds levels to the levels cache to be converted to valid permission structure
Parameters:
Name Type Description levelnumber The permission number for the level you are defining brkboolean Whether the level should break (stop processing higher levels, and inhibit a no permission error) checkfunction The permission checking function Returns:
PermissionLevels - This permission levels
Type Definitions
-
permLevel
-
Properties:
Name Type Description breakboolean Whether the level should break (stop processing higher levels, and inhibit a no permission error) checkfunction The permission checking function -
validPermStructure
-
Permission levels indexed from 0-11, based on the level number