| @@ 162-171 (lines=10) @@ | ||
| 159 | * |
|
| 160 | * @return boolean |
|
| 161 | */ |
|
| 162 | public function canView($member = null) |
|
| 163 | { |
|
| 164 | if ($this->hasMethod('getPage')) { |
|
| 165 | if ($page = $this->getPage()) { |
|
| 166 | return $page->canView($member); |
|
| 167 | } |
|
| 168 | } |
|
| 169 | ||
| 170 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 171 | } |
|
| 172 | ||
| 173 | /** |
|
| 174 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 180-189 (lines=10) @@ | ||
| 177 | * |
|
| 178 | * @return boolean |
|
| 179 | */ |
|
| 180 | public function canEdit($member = null) |
|
| 181 | { |
|
| 182 | if ($this->hasMethod('getPage')) { |
|
| 183 | if ($page = $this->getPage()) { |
|
| 184 | return $page->canEdit($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. |
|
| @@ 202-211 (lines=10) @@ | ||
| 199 | * |
|
| 200 | * @return boolean |
|
| 201 | */ |
|
| 202 | public function canDelete($member = null) |
|
| 203 | { |
|
| 204 | if ($this->hasMethod('getPage')) { |
|
| 205 | if ($page = $this->getPage()) { |
|
| 206 | return $page->canArchive($member); |
|
| 207 | } |
|
| 208 | } |
|
| 209 | ||
| 210 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 211 | } |
|
| 212 | ||
| 213 | /** |
|
| 214 | * Basic permissions, defaults to page perms where possible. |
|