mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-18 19:14:45 +08:00
Fix shared label check logic [SCI-12153]
This commit is contained in:
parent
1f08b80513
commit
6366589947
1 changed files with 2 additions and 2 deletions
|
@ -59,13 +59,13 @@ module Lists
|
|||
|
||||
case_statement = <<-SQL.squish
|
||||
CASE
|
||||
WHEN repositories.team_id = :team_id AND repositories.permission_level NOT IN (:not_shared_value)
|
||||
WHEN repositories.team_id = :team_id AND (repositories.permission_level NOT IN (:not_shared_value)
|
||||
OR EXISTS (
|
||||
SELECT 1 FROM team_shared_objects
|
||||
WHERE team_shared_objects.shared_object_id = repositories.id
|
||||
AND team_shared_objects.shared_object_type = 'RepositoryBase'
|
||||
AND team_shared_objects.team_id != :team_id
|
||||
) THEN 1
|
||||
)) THEN 1
|
||||
WHEN repositories.team_id != :team_id AND repositories.permission_level NOT IN (:not_shared_value)
|
||||
OR EXISTS (
|
||||
SELECT 1 FROM team_shared_objects
|
||||
|
|
Loading…
Add table
Reference in a new issue