Skip to content

Commit

Permalink
Merge pull request #6968 from seekingalpha/channels-create-perm-check
Browse files Browse the repository at this point in the history
[FIX] make channels.create API check for create-c
  • Loading branch information
engelgabriel committed May 15, 2017
2 parents 83257e5 + 6e5ce3a commit b9acc65
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 b9acc65

Please sign in to comment.