@@ 60-69 (lines=10) @@ | ||
57 | * |
|
58 | * @return bool |
|
59 | */ |
|
60 | public function hasAccessToAny($operation_array) |
|
61 | { |
|
62 | foreach ((array) $operation_array as $key => $operation) { |
|
63 | if ($this->get($operation.'.access') == true) { |
|
64 | return true; |
|
65 | } |
|
66 | } |
|
67 | ||
68 | return false; |
|
69 | } |
|
70 | ||
71 | /** |
|
72 | * Check if all operations are allowed for a Crud Panel. Return false if not. |
|
@@ 78-87 (lines=10) @@ | ||
75 | * |
|
76 | * @return bool |
|
77 | */ |
|
78 | public function hasAccessToAll($operation_array) |
|
79 | { |
|
80 | foreach ((array) $operation_array as $key => $operation) { |
|
81 | if (! $this->get($operation.'.access')) { |
|
82 | return false; |
|
83 | } |
|
84 | } |
|
85 | ||
86 | return true; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Check if a operation is allowed for a Crud Panel. Fail if not. |