|
@@ 130-139 (lines=10) @@
|
| 127 |
|
// 2. if they are set, it is in one of the edit groups |
| 128 |
|
$editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
| 129 |
|
$editorUser = $this->userManager->get($editoruid); |
| 130 |
|
if ($updatable && count($editGroups) > 0 && $editorUser) { |
| 131 |
|
$updatable = false; |
| 132 |
|
foreach($editGroups as $editGroup) { |
| 133 |
|
$editorGroup = $this->groupManager->get($editGroup); |
| 134 |
|
if ($editorGroup !== null && $editorGroup->inGroup($editorUser)) { |
| 135 |
|
$updatable = true; |
| 136 |
|
break; |
| 137 |
|
} |
| 138 |
|
} |
| 139 |
|
} |
| 140 |
|
} catch (\Exception $e) { |
| 141 |
|
throw $e; |
| 142 |
|
} |
|
@@ 195-204 (lines=10) @@
|
| 192 |
|
// 2. if they are set, it is in one of the edit groups |
| 193 |
|
$editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
| 194 |
|
$editorUser = $this->userManager->get($editoruid); |
| 195 |
|
if ($updatable && count($editGroups) > 0 && $editorUser) { |
| 196 |
|
$updatable = false; |
| 197 |
|
foreach($editGroups as $editGroup) { |
| 198 |
|
$editorGroup = $this->groupManager->get($editGroup); |
| 199 |
|
if ($editorGroup !== null && $editorGroup->inGroup($editorUser)) { |
| 200 |
|
$updatable = true; |
| 201 |
|
break; |
| 202 |
|
} |
| 203 |
|
} |
| 204 |
|
} |
| 205 |
|
|
| 206 |
|
$serverHost = $this->urlGenerator->getAbsoluteURL('/'); |
| 207 |
|
|