mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: On clicking edit category button, notification level is set to default
commit message
This commit is contained in:
parent
7bf4ebf2f6
commit
6b69d717cc
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue