| @@ 141-150 (lines=10) @@ | ||
| 138 | * |
|
| 139 | * @return boolean |
|
| 140 | */ |
|
| 141 | public function canView($member = null) |
|
| 142 | { |
|
| 143 | if ($this->hasMethod('getPage')) { |
|
| 144 | if ($page = $this->getPage()) { |
|
| 145 | return $page->canView($member); |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||
| 149 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 150 | } |
|
| 151 | ||
| 152 | /** |
|
| 153 | * Basic permissions, defaults to page perms where possible. |
|
| @@ 159-168 (lines=10) @@ | ||
| 156 | * |
|
| 157 | * @return boolean |
|
| 158 | */ |
|
| 159 | public function canEdit($member = null) |
|
| 160 | { |
|
| 161 | if ($this->hasMethod('getPage')) { |
|
| 162 | if ($page = $this->getPage()) { |
|
| 163 | return $page->canEdit($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. |
|
| @@ 181-190 (lines=10) @@ | ||
| 178 | * |
|
| 179 | * @return boolean |
|
| 180 | */ |
|
| 181 | public function canDelete($member = null) |
|
| 182 | { |
|
| 183 | if ($this->hasMethod('getPage')) { |
|
| 184 | if ($page = $this->getPage()) { |
|
| 185 | return $page->canArchive($member); |
|
| 186 | } |
|
| 187 | } |
|
| 188 | ||
| 189 | return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * Basic permissions, defaults to page perms where possible. |
|