Skip to content

Commit 7194fb1

Browse files
committed
Merge pull request #1068 from ParsePlatform/flovilmart.AllowRolesOps
Allows Operations on Roles
2 parents ad2a29e + dd7fad8 commit 7194fb1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/rest.js

-5
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ function update(config, auth, className, objectId, restObject) {
115115

116116
// Disallowing access to the _Role collection except by master key
117117
function enforceRoleSecurity(method, className, auth) {
118-
if (className === '_Role' && !auth.isMaster) {
119-
throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN,
120-
'Clients aren\'t allowed to perform the ' +
121-
method + ' operation on the role collection.');
122-
}
123118
if (method === 'delete' && className === '_Installation' && !auth.isMaster) {
124119
throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN,
125120
'Clients aren\'t allowed to perform the ' +

0 commit comments

Comments
 (0)