mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: can delete category if topic_count < 0
This commit is contained in:
parent
104b39540a
commit
05d2083796
@ -22,7 +22,7 @@ module CategoryGuardian
|
||||
|
||||
def can_delete_category?(category)
|
||||
can_edit_category?(category) &&
|
||||
category.topic_count == 0 &&
|
||||
category.topic_count <= 0 &&
|
||||
!category.uncategorized? &&
|
||||
!category.has_children?
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user