Merge pull request #7964 from artoscinote/ma_SCI_11181

Add missing permisson changes [SCI-11181]
This commit is contained in:
Martin Artnik 2024-10-14 13:07:06 +02:00 committed by GitHub
commit ca2c409bb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ Canaid::Permissions.register_for(StorageLocation) do
root_storage_location.shared_with_write?(user.current_team)
end
can :create_storage_location_repository_rows do |user, storage_location|
can :manage_storage_location_repository_rows do |user, storage_location|
can_read_storage_location?(user, storage_location) &&
user.current_team.permission_granted?(user, TeamPermissions::STORAGE_LOCATION_CONTAINERS_MANAGE)
end