diff --git a/packages/rocketchat-authorization/server/models/Permissions.coffee b/packages/rocketchat-authorization/server/models/Permissions.coffee index 27a781835544..727b6b69eb3d 100644 --- a/packages/rocketchat-authorization/server/models/Permissions.coffee +++ b/packages/rocketchat-authorization/server/models/Permissions.coffee @@ -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