FIX: can delete category if topic_count < 0

This commit is contained in:
Neil Lalonde
2014-08-22 12:25:28 -04:00
parent 104b39540a
commit 05d2083796
+1 -1
View File
@@ -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