mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
chore: Break closure call on two lines to make it readable
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
fa8efd5df8
commit
c1b451ea86
2 changed files with 4 additions and 2 deletions
|
|
@ -119,7 +119,8 @@ class SystemTagMappingNode implements \Sabre\DAV\INode {
|
|||
if (!$this->tagManager->canUserAssignTag($this->tag, $this->user)) {
|
||||
throw new Forbidden('No permission to unassign tag ' . $this->tag->getId());
|
||||
}
|
||||
if (!($this->childWriteAccessFunction)($this->objectId)) {
|
||||
$writeAccessFunction = $this->childWriteAccessFunction;
|
||||
if (!$writeAccessFunction($this->objectId)) {
|
||||
throw new Forbidden('No permission to unassign tag to ' . $this->objectId);
|
||||
}
|
||||
$this->tagMapper->unassignTags($this->objectId, $this->objectType, $this->tag->getId());
|
||||
|
|
|
|||
|
|
@ -64,7 +64,8 @@ class SystemTagsObjectMappingCollection implements ICollection {
|
|||
if (!$this->tagManager->canUserAssignTag($tag, $this->user)) {
|
||||
throw new Forbidden('No permission to assign tag ' . $tagId);
|
||||
}
|
||||
if (!($this->childWriteAccessFunction)($this->objectId)) {
|
||||
$writeAccessFunction = $this->childWriteAccessFunction;
|
||||
if (!$writeAccessFunction($this->objectId)) {
|
||||
throw new Forbidden('No permission to assign tag to ' . $this->objectId);
|
||||
}
|
||||
$this->tagMapper->assignTags($this->objectId, $this->objectType, $tagId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue