summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index e8c3b9bb..bf0f40ee 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -110,6 +110,12 @@ class User < ApplicationRecord
110 redaktion? 110 redaktion?
111 end 111 end
112 112
113 def may_change_live_at?(path)
114 return true if path.nil?
115 return true unless Node.restricted_path?(path)
116 redaktion?
117 end
118
113 def deactivate!(actor:) 119 def deactivate!(actor:)
114 return false if alumni? 120 return false if alumni?
115 transaction do 121 transaction do