about summary refs log tree commit diff
path: root/app/policies
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2018-04-11 00:50:09 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2018-04-11 00:50:09 +0000
commit33c2bbdda7f94789dc0455711093ee788c64a531 (patch)
treecaced55ea5ede3baa6e13cf15d8a869121dd3d4f /app/policies
parent67e77f230e93b2e2ac05632a7cccdb5f26537f3b (diff)
parentd9b62e34da0c0238176f27557ac7b953da94df7e (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/user_policy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/user_policy.rb b/app/policies/user_policy.rb
index aae207d06..dabdf707a 100644
--- a/app/policies/user_policy.rb
+++ b/app/policies/user_policy.rb
@@ -5,6 +5,10 @@ class UserPolicy < ApplicationPolicy
     staff? && !record.staff?
   end
 
+  def change_email?
+    staff? && !record.staff?
+  end
+
   def disable_2fa?
     admin? && !record.staff?
   end