Skip to content

Commit

Permalink
Fix: make channels.create check for create-c
Browse files Browse the repository at this point in the history
Old mistake rewriting code.
  • Loading branch information
reist committed May 14, 2017
1 parent 83257e5 commit 6e5ce3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-api/server/v1/channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ RocketChat.API.v1.addRoute('channels.close', { authRequired: true }, {

RocketChat.API.v1.addRoute('channels.create', { authRequired: true }, {
post() {
if (!RocketChat.authz.hasPermission(this.userId, 'create-p')) {
if (!RocketChat.authz.hasPermission(this.userId, 'create-c')) {
return RocketChat.API.v1.unauthorized();
}

Expand Down

0 comments on commit 6e5ce3a

Please sign in to comment.