From c895047114b1b89f6346fedd34abb279b570f6f7 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 4 Sep 2024 13:36:12 +0200 Subject: [PATCH] Remove unused permission helpers [SCI-10865] --- app/permissions/team.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/app/permissions/team.rb b/app/permissions/team.rb index bcc30367e..9dfce9d4f 100644 --- a/app/permissions/team.rb +++ b/app/permissions/team.rb @@ -43,30 +43,14 @@ Canaid::Permissions.register_for(Team) do within_limits && team.permission_granted?(user, TeamPermissions::INVENTORIES_CREATE) end - can :read_storage_locations do |user, team| - team.permission_granted?(user, TeamPermissions::STORAGE_LOCATIONS_READ) - end - can :create_storage_locations do |user, team| team.permission_granted?(user, TeamPermissions::STORAGE_LOCATIONS_CREATE) end - can :manage_storage_locations do |user, team| - team.permission_granted?(user, TeamPermissions::STORAGE_LOCATIONS_MANAGE) - end - - can :read_storage_location_containers do |user, team| - team.permission_granted?(user, TeamPermissions::STORAGE_LOCATION_CONTAINERS_READ) - end - can :create_storage_location_containers do |user, team| team.permission_granted?(user, TeamPermissions::STORAGE_LOCATION_CONTAINERS_CREATE) end - can :manage_storage_location_containers do |user, team| - team.permission_granted?(user, TeamPermissions::STORAGE_LOCATION_CONTAINERS_MANAGE) - end - can :create_reports do |user, team| team.permission_granted?(user, TeamPermissions::REPORTS_CREATE) end