diff --git a/resources/config/permissions.php b/resources/config/permissions.php index 61420e0..d4ce845 100644 --- a/resources/config/permissions.php +++ b/resources/config/permissions.php @@ -6,4 +6,7 @@ 'write', 'delete' ], -]; \ No newline at end of file + 'fields' => [ + 'manage', + ], +]; diff --git a/src/LocationsModule.php b/src/LocationsModule.php index 74e7978..48bfaf9 100644 --- a/src/LocationsModule.php +++ b/src/LocationsModule.php @@ -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.*', ], ] ],