1 | <?php namespace Limoncello\Tests\Auth\Authorization\PolicyEnforcement\Data\Policies; |
||
26 | abstract class Application |
||
27 | { |
||
28 | /** |
||
29 | * @return PolicySetInterface |
||
30 | */ |
||
31 | public static function getApplicationPolicy() |
||
32 | { |
||
33 | return (new PolicySet([ |
||
34 | |||
35 | Comments::getPolicies(), |
||
36 | Messaging::policyCanSendMessage(), |
||
37 | |||
38 | ], PolicyAlgorithm::denyOverrides()))->setName('Application'); |
||
39 | } |
||
40 | } |
||
41 |