| @@ 181-190 (lines=10) @@ | ||
| 178 | * |
|
| 179 | * @return boolean |
|
| 180 | */ |
|
| 181 | public function canView($member = null) |
|
| 182 | { |
|
| 183 | if ($this->hasMethod('getPage')) { |
|
| 184 | if ($page = $this->getPage()) { |
|
| 185 | return $page->canView($member); |
|
| 186 | } |
|
| 187 | } |
|
| 188 | ||
| 189 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 199-208 (lines=10) @@ | ||
| 196 | * |
|
| 197 | * @return boolean |
|
| 198 | */ |
|
| 199 | public function canEdit($member = null) |
|
| 200 | { |
|
| 201 | if ($this->hasMethod('getPage')) { |
|
| 202 | if ($page = $this->getPage()) { |
|
| 203 | return $page->canEdit($member); |
|
| 204 | } |
|
| 205 | } |
|
| 206 | ||
| 207 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 208 | } |
|
| 209 | ||
| 210 | /** |
|
| 211 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 221-230 (lines=10) @@ | ||
| 218 | * |
|
| 219 | * @return boolean |
|
| 220 | */ |
|
| 221 | public function canDelete($member = null) |
|
| 222 | { |
|
| 223 | if ($this->hasMethod('getPage')) { |
|
| 224 | if ($page = $this->getPage()) { |
|
| 225 | return $page->canArchive($member); |
|
| 226 | } |
|
| 227 | } |
|
| 228 | ||
| 229 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 230 | } |
|
| 231 | ||
| 232 | /** |
|
| 233 | * Basic permissions, defaults to page perms where possible. |
|