Skip to content

Commit

Permalink
Get rid of frontend exceptions on changing selected settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimpson committed Nov 29, 2017
1 parent 8d923c2 commit a7fdc87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-lib/server/publications/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,5 @@ RocketChat.Notifications.streamAll.allowRead('private-settings-changed', functio
if (this.userId == null) {
return false;
}
return RocketChat.authz.hasPermission(this.userId, 'view-privileged-setting');
return RocketChat.authz.hasAtLeastOnePermission(this.userId, ['view-privileged-setting', 'manage-selected-settings']);
});

0 comments on commit a7fdc87

Please sign in to comment.