From ec751c0a78298f9e9a9d9212dd9dcff69aeb2b90 Mon Sep 17 00:00:00 2001 From: Hugo Daniel Date: Tue, 24 Jul 2018 15:27:22 +0200 Subject: [PATCH] Remove admin analytics ability --- app/models/spree/ability_decorator.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/spree/ability_decorator.rb b/app/models/spree/ability_decorator.rb index 385b9be032..54eb462e74 100644 --- a/app/models/spree/ability_decorator.rb +++ b/app/models/spree/ability_decorator.rb @@ -73,7 +73,6 @@ class AbilityDecorator def add_group_management_abilities(user) can [:admin, :index], :overview - can [:admin, :sync], :analytic can [:admin, :index], EnterpriseGroup can [:read, :edit, :update], EnterpriseGroup do |group| user.owned_groups.include? group @@ -86,7 +85,6 @@ class AbilityDecorator can [:create, :search], nil can [:admin, :index], :overview - can [:admin, :sync], :analytic can [:admin, :index, :read, :create, :edit, :update_positions, :destroy], ProducerProperty