Skip to content

Commit

Permalink
fix permission check
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian Steffens committed Jan 16, 2024
1 parent d602d82 commit 2c1488e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/RowService.php
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ public function updateSet(
}

// is row in view?
if($this->row2Mapper->isRowInViewPresent($id, $view, $userId)) {
if(!$this->row2Mapper->isRowInViewPresent($id, $view, $userId)) {
$e = new \Exception('Update row is not allowed.');
$this->logger->error($e->getMessage(), ['exception' => $e]);
throw new InternalError(get_class($this) . ' - ' . __FUNCTION__ . ': '.$e->getMessage());
Expand Down

0 comments on commit 2c1488e

Please sign in to comment.