Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($this->isAdmin()) {
- return TRUE;
- }
- return in_array($permission, $this->permissions);
- langcode: en
- status: true
- dependencies:
- enforced:
- module:
- - yourmodule
- id: administrator
- label: Administrator
- weight: 2
- is_admin: true
- permissions: { }
Add Comment
Please, Sign In to add comment