2021-09-08 16:43:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Policies\Rules;
|
|
|
|
|
|
|
|
|
|
use Kwaadpepper\CrudPolicies\Policies\Rules\StaticRules;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Userlevel Policiy Static Rules
|
|
|
|
|
*! Rules has to return boolean value
|
|
|
|
|
*/
|
|
|
|
|
abstract class UserStaticRules extends StaticRules
|
|
|
|
|
{
|
|
|
|
|
protected static function everyOne(): bool
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2021-09-14 12:12:30 +02:00
|
|
|
protected static function noOne(): bool
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2021-09-08 16:43:44 +02:00
|
|
|
}
|