Skip to content

Commit

Permalink
Fix error with model Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Sep 22, 2015
1 parent aae6806 commit 4372a4c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ RocketChat.models.Permissions = new class extends RocketChat.models._Base
# FIND
findByRole: (role, options) ->
query =
role: role
roles: role

return @findOne query, options
return @find query, options

0 comments on commit 4372a4c

Please sign in to comment.