Browse Source

gender neutral source comment at app/models/user.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11989 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.4.0
Toshi MARUYAMA 11 years ago
parent
commit
edb6e245cf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/user.rb

+ 1
- 1
app/models/user.rb View File

@@ -548,7 +548,7 @@ class User < Principal
allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
end

# Returns true if the user is allowed to delete his own account
# Returns true if the user is allowed to delete the user's own account
def own_account_deletable?
Setting.unsubscribe? &&
(!admin? || User.active.where("admin = ? AND id <> ?", true, id).exists?)

Loading…
Cancel
Save