##// END OF EJS Templates
gender neutral source comment at app/models/user.rb...
Toshi MARUYAMA -
r11759:edb6e245cf16
parent child
Show More
@@ -548,7 +548,7 class User < Principal
548 allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
548 allowed_to?(action, nil, options.reverse_merge(:global => true), &block)
549 end
549 end
550
550
551 # Returns true if the user is allowed to delete his own account
551 # Returns true if the user is allowed to delete the user's own account
552 def own_account_deletable?
552 def own_account_deletable?
553 Setting.unsubscribe? &&
553 Setting.unsubscribe? &&
554 (!admin? || User.active.where("admin = ? AND id <> ?", true, id).exists?)
554 (!admin? || User.active.where("admin = ? AND id <> ?", true, id).exists?)
General Comments 0
You need to be logged in to leave comments. Login now