Add missing permisson changes [SCI-11181]

This commit is contained in:
Martin Artnik 2024-10-14 13:04:12 +02:00
parent b0f41eb14b
commit ba2e2cd686

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