| @@ 166-175 (lines=10) @@ | ||
| 163 | * |
|
| 164 | * @return boolean |
|
| 165 | */ |
|
| 166 | public function canView($member = null) |
|
| 167 | { |
|
| 168 | if ($this->hasMethod('getPage')) { |
|
| 169 | if ($page = $this->getPage()) { |
|
| 170 | return $page->canView($member); |
|
| 171 | } |
|
| 172 | } |
|
| 173 | ||
| 174 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 175 | } |
|
| 176 | ||
| 177 | /** |
|
| 178 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 184-193 (lines=10) @@ | ||
| 181 | * |
|
| 182 | * @return boolean |
|
| 183 | */ |
|
| 184 | public function canEdit($member = null) |
|
| 185 | { |
|
| 186 | if ($this->hasMethod('getPage')) { |
|
| 187 | if ($page = $this->getPage()) { |
|
| 188 | return $page->canEdit($member); |
|
| 189 | } |
|
| 190 | } |
|
| 191 | ||
| 192 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 206-215 (lines=10) @@ | ||
| 203 | * |
|
| 204 | * @return boolean |
|
| 205 | */ |
|
| 206 | public function canDelete($member = null) |
|
| 207 | { |
|
| 208 | if ($this->hasMethod('getPage')) { |
|
| 209 | if ($page = $this->getPage()) { |
|
| 210 | return $page->canArchive($member); |
|
| 211 | } |
|
| 212 | } |
|
| 213 | ||
| 214 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Basic permissions, defaults to page perms where possible. |
|