Permissions

The $this->permissions object (read-only) contains the permissions set in module.json as keys, with a boolean (true/false) as value. The boolean indicates if a user is given a certain permission by the community manager.

Note: Usually, there’s no need to check the existence of a key using isset(), because all keys set in the module.json automatically exist in the permissions object.