@@ -548,7 +548,7 class User < Principal | |||
|
548 | 548 | allowed_to?(action, nil, options.reverse_merge(:global => true), &block) |
|
549 | 549 | end |
|
550 | 550 | |
|
551 |
# Returns true if the user is allowed to delete |
|
|
551 | # Returns true if the user is allowed to delete the user's own account | |
|
552 | 552 | def own_account_deletable? |
|
553 | 553 | Setting.unsubscribe? && |
|
554 | 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