Browse Source

fix source indent of app/models/user.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20037 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 3 years ago
parent
commit
691964695f
1 changed files with 4 additions and 7 deletions
  1. 4
    7
      app/models/user.rb

+ 4
- 7
app/models/user.rb View File

@@ -967,16 +967,13 @@ class User < Principal
if (admin? && saved_change_to_id? && active?) || # newly created admin
(admin? && saved_change_to_admin? && active?) || # regular user became admin
(admin? && saved_change_to_status? && active?) # locked admin became active again

deliver = true
options[:message] = :mail_body_security_notification_add

deliver = true
options[:message] = :mail_body_security_notification_add
elsif (admin? && destroyed? && active?) || # active admin user was deleted
(!admin? && saved_change_to_admin? && active?) || # admin is no longer admin
(admin? && saved_change_to_status? && !active?) # admin was locked

deliver = true
options[:message] = :mail_body_security_notification_remove
deliver = true
options[:message] = :mail_body_security_notification_remove
end

if deliver

Loading…
Cancel
Save