PR CI / ledger (pull_request) Successful in 4s
PR CI / flow (pull_request) Successful in 5s
PR CI / ui (pull_request) Successful in 17s
PR CI / test (lowest) (pull_request) Successful in 39s
PR CI / security (pull_request) Successful in 48s
PR CI / test (stable) (pull_request) Successful in 53s
PR CI / pr-ci (pull_request) Successful in 2s
PR CI / release-automerge (pull_request) Successful in 4s
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;
|
|
}
|