| @@ 1115-1121 (lines=7) @@ | ||
| 1112 | */ |
|
| 1113 | public function canDelete($member = null) |
|
| 1114 | { |
|
| 1115 | if ($member instanceof Member) { |
|
| 1116 | $memberID = $member->ID; |
|
| 1117 | } elseif (is_numeric($member)) { |
|
| 1118 | $memberID = $member; |
|
| 1119 | } else { |
|
| 1120 | $memberID = Member::currentUserID(); |
|
| 1121 | } |
|
| 1122 | ||
| 1123 | // Standard mechanism for accepting permission changes from extensions |
|
| 1124 | $extended = $this->extendedCan('canDelete', $memberID); |
|
| @@ 1216-1222 (lines=7) @@ | ||
| 1213 | */ |
|
| 1214 | public function canEdit($member = null) |
|
| 1215 | { |
|
| 1216 | if ($member instanceof Member) { |
|
| 1217 | $memberID = $member->ID; |
|
| 1218 | } elseif (is_numeric($member)) { |
|
| 1219 | $memberID = $member; |
|
| 1220 | } else { |
|
| 1221 | $memberID = Member::currentUserID(); |
|
| 1222 | } |
|
| 1223 | ||
| 1224 | // Standard mechanism for accepting permission changes from extensions |
|
| 1225 | $extended = $this->extendedCan('canEdit', $memberID); |
|