Let the roles of the host decide next to the groups
This commit is contained in:
1 parent
258c25efe1
commit
69ed8c742a
10 files changed
+185
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user