Skip to content

Commit 4372a4c

Browse files
committed
Fix error with model Permissions
1 parent aae6806 commit 4372a4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/rocketchat-authorization/server/models/Permissions.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ RocketChat.models.Permissions = new class extends RocketChat.models._Base
66
# FIND
77
findByRole: (role, options) ->
88
query =
9-
role: role
9+
roles: role
1010

11-
return @findOne query, options
11+
return @find query, options

0 commit comments

Comments
 (0)