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