From ba2e2cd686604e7833fbc571f98498367c86f98d Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Mon, 14 Oct 2024 13:04:12 +0200 Subject: [PATCH] Add missing permisson changes [SCI-11181] --- app/permissions/storage_location.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/permissions/storage_location.rb b/app/permissions/storage_location.rb index 58b5550e4..cfc99642f 100644 --- a/app/permissions/storage_location.rb +++ b/app/permissions/storage_location.rb @@ -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