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
This commit is contained in:
parent
e1ca4a8663
commit
edb6e245cf
|
@ -548,7 +548,7 @@ class User < Principal
|
||||||
allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
|
allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
|
||||||
end
|
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?
|
def own_account_deletable?
|
||||||
Setting.unsubscribe? &&
|
Setting.unsubscribe? &&
|
||||||
(!admin? || User.active.where("admin = ? AND id <> ?", true, id).exists?)
|
(!admin? || User.active.where("admin = ? AND id <> ?", true, id).exists?)
|
||||||
|
|
Loading…
Reference in New Issue