@@ 106-120 (lines=15) @@ | ||
103 | return true; |
|
104 | } |
|
105 | ||
106 | public function canView($member = null) |
|
107 | { |
|
108 | if (! $member) { |
|
109 | $member = Member::currentUser(); |
|
110 | } |
|
111 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
112 | if ($extended !== null) { |
|
113 | return $extended; |
|
114 | } |
|
115 | if (Permission::checkMember($member, Config::inst()->get('EcommerceRole', 'admin_permission_code'))) { |
|
116 | return true; |
|
117 | } |
|
118 | ||
119 | return parent::canView($member); |
|
120 | } |
|
121 | ||
122 | public function canEdit($member = null) |
|
123 | { |
|
@@ 122-136 (lines=15) @@ | ||
119 | return parent::canView($member); |
|
120 | } |
|
121 | ||
122 | public function canEdit($member = null) |
|
123 | { |
|
124 | if (! $member) { |
|
125 | $member = Member::currentUser(); |
|
126 | } |
|
127 | $extended = $this->extendedCan(__FUNCTION__, $member); |
|
128 | if ($extended !== null) { |
|
129 | return $extended; |
|
130 | } |
|
131 | if (Permission::checkMember($member, Config::inst()->get('EcommerceRole', 'admin_permission_code'))) { |
|
132 | return true; |
|
133 | } |
|
134 | ||
135 | return parent::canEdit($member); |
|
136 | } |
|
137 | ||
138 | public function canDelete($member = null) |
|
139 | { |