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