aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies/line_policy.rb
diff options
context:
space:
mode:
authorRobert2017-07-04 18:59:26 +0200
committerRobert2017-07-04 21:54:04 +0200
commit9d52ccea7b00b957bf6cf67a44029912ee6b171f (patch)
tree701c2c793c4f0ff9d1cfec668986812bccf5019d /app/policies/line_policy.rb
parent16423b19122eefed728fc71e52d5c1660ff5575a (diff)
downloadchouette-core-9d52ccea7b00b957bf6cf67a44029912ee6b171f.tar.bz2
Refs: #3478@3h; Policy Cleanup and Providing Policy and permissions for all models and actions
- ApplicationPolicy nondestructive permission depend on model existance - ApplicationPolicy destructive permission default to `false` - Tied Policy permissions at ApplicationPolicy Level: edit? → update?, new? → create?, index? → show? - ApplicationPolicy convenience methods `delete?` & `authorizes_action?(action)` - Refactoring of `spec/helpers/table_builder_helper_spec.rb` accordingly - Stubbing scope in specs (cannot switch to referential with a `build_stubbed` instance)
Diffstat (limited to 'app/policies/line_policy.rb')
-rw-r--r--app/policies/line_policy.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/policies/line_policy.rb b/app/policies/line_policy.rb
index a557b496c..674ed9b8d 100644
--- a/app/policies/line_policy.rb
+++ b/app/policies/line_policy.rb
@@ -6,13 +6,6 @@ class LinePolicy < ApplicationPolicy
end
end
- def show?; true end
- def create?; false end
- def update? ; false end
- def new? ; create? end
- def edit? ; false end
- def destroy? ; create? end
-
def create_footnote?
!archived? && user.has_permission?('footnotes.create')
end