@@ 141-150 (lines=10) @@ | ||
138 | // 2. if they are set, it is in one of the edit groups |
|
139 | $editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
|
140 | $editorUser = $this->userManager->get($editoruid); |
|
141 | if ($updatable && count($editGroups) > 0 && $editorUser) { |
|
142 | $updatable = false; |
|
143 | foreach ($editGroups as $editGroup) { |
|
144 | $editorGroup = $this->groupManager->get($editGroup); |
|
145 | if ($editorGroup !== null && $editorGroup->inGroup($editorUser)) { |
|
146 | $updatable = true; |
|
147 | break; |
|
148 | } |
|
149 | } |
|
150 | } |
|
151 | } catch (\Exception $e) { |
|
152 | throw $e; |
|
153 | } |
|
@@ 255-264 (lines=10) @@ | ||
252 | // 2. if they are set, it is in one of the edit groups |
|
253 | $editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
|
254 | $editorUser = $this->userManager->get($editoruid); |
|
255 | if ($updatable && count($editGroups) > 0 && $editorUser) { |
|
256 | $updatable = false; |
|
257 | foreach($editGroups as $editGroup) { |
|
258 | $editorGroup = $this->groupManager->get($editGroup); |
|
259 | if ($editorGroup !== null && $editorGroup->inGroup($editorUser)) { |
|
260 | $updatable = true; |
|
261 | break; |
|
262 | } |
|
263 | } |
|
264 | } |
|
265 | ||
266 | $serverHost = $this->urlGenerator->getAbsoluteURL('/'); |
|
267 |