| @@ 144-153 (lines=10) @@ | ||
| 141 | * | |
| 142 | * @return boolean | |
| 143 | */ | |
| 144 | public function canView($member = null) | |
| 145 |     { | |
| 146 |         if ($this->hasMethod('getPage')) { | |
| 147 |             if ($page = $this->getPage()) { | |
| 148 | return $page->canView($member); | |
| 149 | } | |
| 150 | } | |
| 151 | ||
| 152 |         return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; | |
| 153 | } | |
| 154 | ||
| 155 | /** | |
| 156 | * Basic permissions, defaults to page perms where possible. | |
| @@ 162-171 (lines=10) @@ | ||
| 159 | * | |
| 160 | * @return boolean | |
| 161 | */ | |
| 162 | public function canEdit($member = null) | |
| 163 |     { | |
| 164 |         if ($this->hasMethod('getPage')) { | |
| 165 |             if ($page = $this->getPage()) { | |
| 166 | return $page->canEdit($member); | |
| 167 | } | |
| 168 | } | |
| 169 | ||
| 170 |         return (Permission::check('CMS_ACCESS', 'any', $member)) ? true : null; | |
| 171 | } | |
| 172 | ||
| 173 | /** | |
| 174 | * Basic permissions, defaults to page perms where possible. | |
| @@ 184-193 (lines=10) @@ | ||
| 181 | * | |
| 182 | * @return boolean | |
| 183 | */ | |
| 184 | public function canDelete($member = null) | |
| 185 |     { | |
| 186 |         if ($this->hasMethod('getPage')) { | |
| 187 |             if ($page = $this->getPage()) { | |
| 188 | return $page->canArchive($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. | |