mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 15:59:24 +08:00
FIX: On clicking edit category button, notification level is set to default
commit message
This commit is contained in:
parent
7bf4ebf2f6
commit
6b69d717cc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user