first commit
This commit is contained in:
48
config/backpack/permissionmanager.php
Normal file
48
config/backpack/permissionmanager.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Models
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Models used in the User, Role and Permission CRUDs.
|
||||
|
|
||||
*/
|
||||
|
||||
'models' => [
|
||||
'user' => config('backpack.base.user_model_fqn', \App\Models\User::class),
|
||||
'permission' => Backpack\PermissionManager\app\Models\Permission::class,
|
||||
'role' => Backpack\PermissionManager\app\Models\Role::class,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Disallow the user interface for creating/updating permissions or roles.
|
||||
|--------------------------------------------------------------------------
|
||||
| Roles and permissions are used in code by their name
|
||||
| - ex: $user->hasPermissionTo('edit articles');
|
||||
|
|
||||
| So after the developer has entered all permissions and roles, the administrator should either:
|
||||
| - not have access to the panels
|
||||
| or
|
||||
| - creating and updating should be disabled
|
||||
*/
|
||||
|
||||
'allow_permission_create' => true,
|
||||
'allow_permission_update' => true,
|
||||
'allow_permission_delete' => true,
|
||||
'allow_role_create' => true,
|
||||
'allow_role_update' => true,
|
||||
'allow_role_delete' => true,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Multiple-guards functionality
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'multiple_guards' => false,
|
||||
|
||||
];
|
Reference in New Issue
Block a user