mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +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…
Reference in New Issue
Block a user