Release 2.5.2 (#3985)

* Adds ability to configure cache from cli

* dont use array.includes for node 4.6

* Changelog and version bump

* Removes runtime check for version

* Build releases on 4.6
This commit is contained in:
Florent Vilmart
2017-07-02 20:50:13 -04:00
committed by GitHub
parent 287810443b
commit 5931aa8851
6 changed files with 21 additions and 8 deletions

View File

@@ -155,7 +155,7 @@ function enforceRoleSecurity(method, className, auth) {
}
//all volatileClasses are masterKey only
if(classesWithMasterOnlyAccess.includes(className) && !auth.isMaster){
if(classesWithMasterOnlyAccess.indexOf(className) >= 0 && !auth.isMaster){
const error = `Clients aren't allowed to perform the ${method} operation on the ${className} collection.`
throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN, error);
}