Skip to content

Commit

Permalink
fixup! feat(Context): add share logic for contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
blizzz committed Apr 18, 2024
1 parent 36956bd commit 980a2d9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/Service/PermissionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,6 @@ public function canAccessContextById(int $contextId, ?string $userId = null): bo
}
}

try {
$this->contextMapper->findById($contextId, $userId ?? $this->userId);
return true;
} catch (NotFoundError $e) {
return false;
}
}

public function canAccessView(View $view, ?string $userId = null): bool {
return $this->canAccessNodeById(Application::NODE_TYPE_VIEW, $view->getId(), $userId);
}
Expand Down

0 comments on commit 980a2d9

Please sign in to comment.