@@ 69-82 (lines=14) @@ | ||
66 | * @param null $member |
|
67 | * @return bool |
|
68 | */ |
|
69 | public function canCreate($member = null) |
|
70 | { |
|
71 | if (!class_exists('UserDefinedForm')) { |
|
72 | return false; |
|
73 | } |
|
74 | ||
75 | // Standard mechanism for accepting permission changes from extensions |
|
76 | $extended = $this->extendedCan('canCreate', $member); |
|
77 | if ($extended !== null) { |
|
78 | return $extended; |
|
79 | } |
|
80 | ||
81 | return parent::canCreate(); |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @param null $member |
|
@@ 88-101 (lines=14) @@ | ||
85 | * @param null $member |
|
86 | * @return bool |
|
87 | */ |
|
88 | public function canView($member = null) |
|
89 | { |
|
90 | if (!class_exists('UserDefinedForm')) { |
|
91 | return false; |
|
92 | } |
|
93 | ||
94 | // Standard mechanism for accepting permission changes from extensions |
|
95 | $extended = $this->extendedCan('canView', $member); |
|
96 | if ($extended !== null) { |
|
97 | return $extended; |
|
98 | } |
|
99 | ||
100 | return parent::canView(); |
|
101 | } |
|
102 | } |
@@ 88-101 (lines=14) @@ | ||
85 | * @param null $member |
|
86 | * @return bool |
|
87 | */ |
|
88 | public function canView($member = null) |
|
89 | { |
|
90 | if (!class_exists('Blog')) { |
|
91 | return false; |
|
92 | } |
|
93 | ||
94 | // Standard mechanism for accepting permission changes from extensions |
|
95 | $extended = $this->extendedCan('canView', $member); |
|
96 | if ($extended !== null) { |
|
97 | return $extended; |
|
98 | } |
|
99 | ||
100 | return parent::canView(); |
|
101 | } |
|
102 | } |