16 lines
499 B
PHP
16 lines
499 B
PHP
<?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;
|
|
}
|