Let the roles of the host decide next to the groups

This commit is contained in:
Matthijs Iriks committed 2026-12-04 05:40:02 +01:00
1 parent 258c25efe1
commit 69ed8c742a
10 files changed
+185 -3

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?php
namespace IriksIT\Manager\Contracts;
use Illuminate\Contracts\Auth\Authenticatable;
/**
* Where a site that has roles of its own says what an account may do in the manager (config `manager.permissions.resolver`).
* Values that are no permission of an active module are ignored, and what a permission needs is added.
*/
interface PermissionResolver
{
/** @return list<string> permission values such as `posts.write` */
public function permissions(Authenticatable $user): array;
}