about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-18 03:06:27 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-18 03:06:27 -0600
commit87160de42bb7037f81fbfd52678cb6d2c0b80ca8 (patch)
tree672a3766bb416890fbc027d90c551d9c45991f12
parenta38d8ec3ed3accf8789a774fd5d03c6b940095ea (diff)
(actually) add `defanged?` prop to application policy
-rw-r--r--app/policies/application_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb
index 7b1332209..fd45f2b34 100644
--- a/app/policies/application_policy.rb
+++ b/app/policies/application_policy.rb
@@ -8,7 +8,7 @@ class ApplicationPolicy
     @record          = record
   end
 
-  delegate :admin?, :moderator?, :halfmod?, :staff?, :can_moderate?, :has_more_authority_than?, to: :current_user, allow_nil: true
+  delegate :admin?, :moderator?, :halfmod?, :staff?, :can_moderate?, :defanged?, :has_more_authority_than?, to: :current_user, allow_nil: true
 
   private