1 | <?php |
||
20 | class Permission extends Component |
||
21 | { |
||
22 | |||
23 | /** |
||
24 | * @param UserElement $userElement |
||
25 | * @return bool |
||
26 | */ |
||
27 | public function canCreateOrganization(UserElement $userElement) |
||
35 | |||
36 | /** |
||
37 | * @param OrganizationElement $organizationElement |
||
38 | * @param UserElement|null $userElement |
||
39 | * @return bool |
||
40 | */ |
||
41 | public function canUpdateOrganization(UserElement $userElement, OrganizationElement $organizationElement) |
||
62 | |||
63 | /** |
||
64 | * Determine whether a user can manage organization types |
||
65 | * |
||
66 | * @param UserElement $userElement |
||
67 | * @param OrganizationElement $organizationElement |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function canManageOrganizationTypes(UserElement $userElement, OrganizationElement $organizationElement) |
||
83 | |||
84 | /** |
||
85 | * Determine whether a user can manage organization types |
||
86 | * |
||
87 | * @param UserElement $userElement |
||
88 | * @param OrganizationElement $organizationElement |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function canManageOrganizationUsers(UserElement $userElement, OrganizationElement $organizationElement) |
||
104 | } |
||
105 |