@@ 117-126 (lines=10) @@ | ||
114 | // 1. No edit groups are set or |
|
115 | // 2. if they are set, it is in one of the edit groups |
|
116 | $editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
|
117 | if ($updatable && count($editGroups) > 0) { |
|
118 | $updatable = false; |
|
119 | foreach($editGroups as $editGroup) { |
|
120 | $editorGroup = \OC::$server->getGroupManager()->get($editGroup); |
|
121 | if ($editorGroup !== null && sizeof($editorGroup->searchUsers($editoruid)) > 0) { |
|
122 | $updatable = true; |
|
123 | break; |
|
124 | } |
|
125 | } |
|
126 | } |
|
127 | } catch (\Exception $e) { |
|
128 | throw $e; |
|
129 | } |
|
@@ 181-190 (lines=10) @@ | ||
178 | // 1. No edit groups are set or |
|
179 | // 2. if they are set, it is in one of the edit groups |
|
180 | $editGroups = array_filter(explode('|', $this->appConfig->getAppValue('edit_groups'))); |
|
181 | if ($updatable && count($editGroups) > 0) { |
|
182 | $updatable = false; |
|
183 | foreach($editGroups as $editGroup) { |
|
184 | $editorGroup = \OC::$server->getGroupManager()->get($editGroup); |
|
185 | if ($editorGroup !== null && sizeof($editorGroup->searchUsers($editoruid)) > 0) { |
|
186 | $updatable = true; |
|
187 | break; |
|
188 | } |
|
189 | } |
|
190 | } |
|
191 | ||
192 | $serverHost = $this->urlGenerator->getAbsoluteURL('/'); |
|
193 |