| @@ 152-161 (lines=10) @@ | ||
| 149 | * |
|
| 150 | * @return boolean |
|
| 151 | */ |
|
| 152 | public function canView($member = null) |
|
| 153 | { |
|
| 154 | if ($this->hasMethod('getPage')) { |
|
| 155 | if ($page = $this->getPage()) { |
|
| 156 | return $page->canView($member); |
|
| 157 | } |
|
| 158 | } |
|
| 159 | ||
| 160 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 161 | } |
|
| 162 | ||
| 163 | /** |
|
| 164 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 170-179 (lines=10) @@ | ||
| 167 | * |
|
| 168 | * @return boolean |
|
| 169 | */ |
|
| 170 | public function canEdit($member = null) |
|
| 171 | { |
|
| 172 | if ($this->hasMethod('getPage')) { |
|
| 173 | if ($page = $this->getPage()) { |
|
| 174 | return $page->canEdit($member); |
|
| 175 | } |
|
| 176 | } |
|
| 177 | ||
| 178 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 179 | } |
|
| 180 | ||
| 181 | /** |
|
| 182 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 192-201 (lines=10) @@ | ||
| 189 | * |
|
| 190 | * @return boolean |
|
| 191 | */ |
|
| 192 | public function canDelete($member = null) |
|
| 193 | { |
|
| 194 | if ($this->hasMethod('getPage')) { |
|
| 195 | if ($page = $this->getPage()) { |
|
| 196 | return $page->canArchive($member); |
|
| 197 | } |
|
| 198 | } |
|
| 199 | ||
| 200 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 201 | } |
|
| 202 | ||
| 203 | /** |
|
| 204 | * Basic permissions, defaults to page perms where possible. |
|