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