mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: On clicking edit category button, notification level is set to default
commit message
This commit is contained in:
@@ -38,4 +38,7 @@ class BasicCategorySerializer < ApplicationSerializer
|
||||
scope && scope.can_edit?(object)
|
||||
end
|
||||
|
||||
def notification_level
|
||||
object.notification_level || CategoryUser.where(user: object.user, category: object).first.try(:notification_level)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user