mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
need to allow for now scope
This commit is contained in:
parent
60ba9dcc5e
commit
3f67f91d27
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class CategorySerializer < BasicCategorySerializer
|
|||
end
|
||||
|
||||
def notification_level
|
||||
user = scope.user
|
||||
user = scope && scope.user
|
||||
object.notification_level ||
|
||||
(user && CategoryUser.where(user: user, category: object).first.try(:notification_level))
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue