| @@ 134-143 (lines=10) @@ | ||
| 131 | * |
|
| 132 | * @return boolean |
|
| 133 | */ |
|
| 134 | public function canView($member = null) |
|
| 135 | { |
|
| 136 | if ($this->hasMethod('getPage')) { |
|
| 137 | if ($page = $this->getPage()) { |
|
| 138 | return $page->canView($member); |
|
| 139 | } |
|
| 140 | } |
|
| 141 | ||
| 142 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 152-161 (lines=10) @@ | ||
| 149 | * |
|
| 150 | * @return boolean |
|
| 151 | */ |
|
| 152 | public function canEdit($member = null) |
|
| 153 | { |
|
| 154 | if ($this->hasMethod('getPage')) { |
|
| 155 | if ($page = $this->getPage()) { |
|
| 156 | return $page->canEdit($member); |
|
| 157 | } |
|
| 158 | } |
|
| 159 | ||
| 160 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 161 | } |
|
| 162 | ||
| 163 | /** |
|
| 164 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 174-183 (lines=10) @@ | ||
| 171 | * |
|
| 172 | * @return boolean |
|
| 173 | */ |
|
| 174 | public function canDelete($member = null) |
|
| 175 | { |
|
| 176 | if ($this->hasMethod('getPage')) { |
|
| 177 | if ($page = $this->getPage()) { |
|
| 178 | return $page->canArchive($member); |
|
| 179 | } |
|
| 180 | } |
|
| 181 | ||
| 182 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 183 | } |
|
| 184 | ||
| 185 | /** |
|
| 186 | * Basic permissions, defaults to page perms where possible. |
|