implemented operation based permissions

This commit is contained in:
root
2025-12-24 19:22:20 -05:00
parent a9afa7ce13
commit 3d6aa856b4
18 changed files with 578 additions and 17 deletions

View File

@@ -46,4 +46,28 @@ abstract class ModuleInstanceAbstract implements ModuleInstanceInterface
// Override in specific modules if needed
}
/**
* Permissions provided by this module
*
* @return array Permission definitions with metadata
*
* @example
* return [
* 'user_manager.users.view' => [
* 'label' => 'View Users',
* 'description' => 'View user list and details',
* 'group' => 'User Management'
* ],
* 'user_manager.users.*' => [
* 'label' => 'Full User Management',
* 'description' => 'All user management permissions',
* 'group' => 'User Management'
* ]
* ];
*/
public function permissions(): array
{
return [];
}
}