mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Fix system tag update code
This commit is contained in:
parent
d7727cdc74
commit
10fae3994a
1 changed files with 4 additions and 0 deletions
|
|
@ -187,6 +187,9 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
|
|||
$groups = [];
|
||||
if (isset($data['groups'])) {
|
||||
$groups = $data['groups'];
|
||||
if (is_string($groups)) {
|
||||
$groups = explode('|', $groups);
|
||||
}
|
||||
}
|
||||
|
||||
if($userVisible === false || $userAssignable === false || !empty($groups)) {
|
||||
|
|
@ -308,6 +311,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
|
|||
$groupIds = explode('|', $propValue);
|
||||
$this->tagManager->setTagGroups($tag, $groupIds);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue