| @@ 158-167 (lines=10) @@ | ||
| 155 | * |
|
| 156 | * @return boolean |
|
| 157 | */ |
|
| 158 | public function canView($member = null) |
|
| 159 | { |
|
| 160 | if ($this->hasMethod('getPage')) { |
|
| 161 | if ($page = $this->getPage()) { |
|
| 162 | return $page->canView($member); |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 176-185 (lines=10) @@ | ||
| 173 | * |
|
| 174 | * @return boolean |
|
| 175 | */ |
|
| 176 | public function canEdit($member = null) |
|
| 177 | { |
|
| 178 | if ($this->hasMethod('getPage')) { |
|
| 179 | if ($page = $this->getPage()) { |
|
| 180 | return $page->canEdit($member); |
|
| 181 | } |
|
| 182 | } |
|
| 183 | ||
| 184 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 185 | } |
|
| 186 | ||
| 187 | /** |
|
| 188 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 198-207 (lines=10) @@ | ||
| 195 | * |
|
| 196 | * @return boolean |
|
| 197 | */ |
|
| 198 | public function canDelete($member = null) |
|
| 199 | { |
|
| 200 | if ($this->hasMethod('getPage')) { |
|
| 201 | if ($page = $this->getPage()) { |
|
| 202 | return $page->canArchive($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. |
|