FIX: make can_invite_to_forum robust against plugin interference (#9644)

This commit is contained in:
Kane York 2020-05-06 13:57:26 -07:00 committed by GitHub
parent 97657aa322
commit 15a938e861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class CurrentUserSerializer < BasicUserSerializer
end
def can_invite_to_forum
true
scope.can_invite_to_forum?
end
def include_can_invite_to_forum?