|
@@ 108-117 (lines=10) @@
|
| 105 |
|
// 1. No edit groups are set or |
| 106 |
|
// 2. if they are set, it is in one of the edit groups |
| 107 |
|
$editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
| 108 |
|
if ($updatable && count($editGroups) > 0) { |
| 109 |
|
$updatable = false; |
| 110 |
|
foreach($editGroups as $editGroup) { |
| 111 |
|
$editorGroup = \OC::$server->getGroupManager()->get($editGroup); |
| 112 |
|
if ($editorGroup !== null && sizeof($editorGroup->searchUsers($editoruid)) > 0) { |
| 113 |
|
$updatable = true; |
| 114 |
|
break; |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
} catch (\Exception $e) { |
| 119 |
|
throw $e; |
| 120 |
|
} |
|
@@ 167-176 (lines=10) @@
|
| 164 |
|
// 1. No edit groups are set or |
| 165 |
|
// 2. if they are set, it is in one of the edit groups |
| 166 |
|
$editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
| 167 |
|
if ($updatable && count($editGroups) > 0) { |
| 168 |
|
$updatable = false; |
| 169 |
|
foreach($editGroups as $editGroup) { |
| 170 |
|
$editorGroup = \OC::$server->getGroupManager()->get($editGroup); |
| 171 |
|
if ($editorGroup !== null && sizeof($editorGroup->searchUsers($editoruid)) > 0) { |
| 172 |
|
$updatable = true; |
| 173 |
|
break; |
| 174 |
|
} |
| 175 |
|
} |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
$serverHost = $this->urlGenerator->getAbsoluteURL('/'); |
| 179 |
|
|