mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-28 02:27:57 +08:00
Disable management of repository filters for shared repositories with view permissions [SCI-6489] (#3856)
This commit is contained in:
parent
0ce6f43cbf
commit
039c21d603
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ Canaid::Permissions.register_for(Repository) do
|
|||
|
||||
# repository: create/update/delete filters
|
||||
can :manage_repository_filters do |user, repository|
|
||||
user.is_normal_user_or_admin_of_team?(repository.team) ||
|
||||
((repository.team == user.current_team) && user.is_normal_user_or_admin_of_team?(repository.team)) ||
|
||||
(repository.shared_with_write?(user.current_team) && user.is_normal_user_or_admin_of_team?(user.current_team))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue