Skip to content

Commit

Permalink
Merge pull request #1068 from ParsePlatform/flovilmart.AllowRolesOps
Browse files Browse the repository at this point in the history
Allows Operations on Roles
  • Loading branch information
flovilmart committed Mar 17, 2016
2 parents ad2a29e + dd7fad8 commit 7194fb1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ function update(config, auth, className, objectId, restObject) {

// Disallowing access to the _Role collection except by master key
function enforceRoleSecurity(method, className, auth) {
if (className === '_Role' && !auth.isMaster) {
throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN,
'Clients aren\'t allowed to perform the ' +
method + ' operation on the role collection.');
}
if (method === 'delete' && className === '_Installation' && !auth.isMaster) {
throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN,
'Clients aren\'t allowed to perform the ' +
Expand Down

0 comments on commit 7194fb1

Please sign in to comment.