mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 14:29:08 +01:00
bugfix
This commit is contained in:
parent
0ebf918d83
commit
ec8e813546
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Question < ActiveRecord::Base
|
|||
def can_be_removed?
|
||||
return false if self.answers.count > 0
|
||||
return false if Inbox.where(question: self).count > 1
|
||||
self.user.decrement! :asked_count
|
||||
self.user.decrement! :asked_count unless self.author_is_anonymous
|
||||
true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue