aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/compliance_check_set_policy.rb11
-rw-r--r--app/policies/import_policy.rb4
2 files changed, 0 insertions, 15 deletions
diff --git a/app/policies/compliance_check_set_policy.rb b/app/policies/compliance_check_set_policy.rb
index 85e7e8ddd..90323d7c3 100644
--- a/app/policies/compliance_check_set_policy.rb
+++ b/app/policies/compliance_check_set_policy.rb
@@ -4,16 +4,5 @@ class ComplianceCheckSetPolicy < ApplicationPolicy
scope
end
- def create?
- false # ComplianceCheckSet can not be created from controller
- end
-
- def destroy?
- false # Asynchronous operations must not be deleted
- end
-
- def update?
- false # ComplianceCheckSet can not be updated from controller
- end
end
end
diff --git a/app/policies/import_policy.rb b/app/policies/import_policy.rb
index b5e8c5b7e..512bfc8ac 100644
--- a/app/policies/import_policy.rb
+++ b/app/policies/import_policy.rb
@@ -9,10 +9,6 @@ class ImportPolicy < ApplicationPolicy
user.has_permission?('imports.create')
end
- def destroy?
- false # Asynchronous operations must not be deleted
- end
-
def update?
user.has_permission?('imports.update')
end