aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
diff options
context:
space:
mode:
authorLuc Donnet2018-02-27 14:15:25 +0100
committerLuc Donnet2018-02-27 14:15:25 +0100
commit3d61b582389e0e1db73dc698d4c20f50153ea3fc (patch)
treed49fd53fadecc58ca74e64b7ff75ac42b3d087e0 /app/policies
parent69b901fa1223fb78142a1e4e76d1b88d879aec61 (diff)
downloadchouette-core-3d61b582389e0e1db73dc698d4c20f50153ea3fc.tar.bz2
Don't use all compliance_control_set from stif organisation. We will use later compliance_control_set selected by stif organisatoon Refs #5950 @25950_allow_user_to_see_ccset_from_other_organisation
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/application_policy.rb6
-rw-r--r--app/policies/compliance_control_set_policy.rb2
2 files changed, 1 insertions, 7 deletions
diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb
index d14839bdf..33d88660c 100644
--- a/app/policies/application_policy.rb
+++ b/app/policies/application_policy.rb
@@ -95,12 +95,6 @@ class ApplicationPolicy
referential.try(:organisation_id) || record.try(:organisation_id)
end
-
- def belongs_to_stif?
- record.try(:organisation).try(:code) == "STIF"
- end
-
-
#
# Helpers
# -------
diff --git a/app/policies/compliance_control_set_policy.rb b/app/policies/compliance_control_set_policy.rb
index e3fb83e38..55507ffd9 100644
--- a/app/policies/compliance_control_set_policy.rb
+++ b/app/policies/compliance_control_set_policy.rb
@@ -6,7 +6,7 @@ class ComplianceControlSetPolicy < ApplicationPolicy
end
def show?
- organisation_match? or belongs_to_stif?
+ organisation_match?
end
def destroy?