@@ 328-330 (lines=3) @@ | ||
325 | */ |
|
326 | public function canView($member = null) |
|
327 | { |
|
328 | if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
|
329 | $member = Member::currentUser(); |
|
330 | } |
|
331 | ||
332 | if ($member && |
|
333 | Permission::checkMember( |
@@ 103-105 (lines=3) @@ | ||
100 | ||
101 | public function canView($member = null) |
|
102 | { |
|
103 | if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
|
104 | $member = Member::currentUser(); |
|
105 | } |
|
106 | ||
107 | // extended access checks |
|
108 | $results = $this->extend('canView', $member); |
|
@@ 145-147 (lines=3) @@ | ||
142 | ||
143 | public function canEdit($member = null) |
|
144 | { |
|
145 | if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
|
146 | $member = Member::currentUser(); |
|
147 | } |
|
148 | ||
149 | $results = $this->extend('canEdit', $member); |
|
150 | ||
@@ 188-190 (lines=3) @@ | ||
185 | */ |
|
186 | public function canCreate($member = null) |
|
187 | { |
|
188 | if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
|
189 | $member = Member::currentUser(); |
|
190 | } |
|
191 | ||
192 | $results = $this->extend('canCreate', $member); |
|
193 | ||
@@ 222-224 (lines=3) @@ | ||
219 | */ |
|
220 | public function canDelete($member = null) |
|
221 | { |
|
222 | if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
|
223 | $member = Member::currentUser(); |
|
224 | } |
|
225 | ||
226 | $results = $this->extend('canDelete', $member); |
|
227 |
@@ 412-414 (lines=3) @@ | ||
409 | */ |
|
410 | public function getDMSDocumentSetPermissions(Member $member = null) |
|
411 | { |
|
412 | if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) { |
|
413 | $member = Member::currentUser(); |
|
414 | } |
|
415 | ||
416 | $result = ($member && |
|
417 | Permission::checkMember( |