mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 23:56:30 +08:00
Merge pull request #3911 from abbasfaisal/edit-category-fix
FIX: On clicking edit category button, notification level is set to default
This commit is contained in:
commit
81e97c3e44
|
@ -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