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