Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Add permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Peters committed May 1, 2017
1 parent 1b66fc4 commit 42804ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion resources/config/permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
'write',
'delete'
],
];
'fields' => [
'manage',
],
];
3 changes: 2 additions & 1 deletion src/LocationsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class LocationsModule extends Module
'text' => 'module::button.location.new',
],
'assignments' =>[
'enabled' => 'admin/locations'
'enabled' => 'admin/locations',
'permission' => 'wirelab.module.locations::fields.*',
],
]
],
Expand Down

0 comments on commit 42804ec

Please sign in to comment.