Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the source for parses ACL?

I'm looking at the parse server that was released, and looking at the spec I see a reference to methods:

        equal(object.getACL().getReadAccess(user), true);
        equal(object.getACL().getWriteAccess(user), true);
        equal(object.getACL().getPublicReadAccess(), false);
        equal(object.getACL().getPublicWriteAccess(), false);
        ok(object.get("ACL"));

I searched the repo and I don't see any ACL related classes and I couldn't find a relevant library in package.json that it might be using.

Where is it getting this functionality from?

Reference: https://github.com/ParsePlatform/parse-server/blob/master/spec/ParseACL.spec.js

like image 441
cool breeze Avatar asked Nov 09 '22 21:11

cool breeze


1 Answers

It comes from the parse package in NPM. See here for the method definition: https://github.com/ParsePlatform/Parse-SDK-JS/blob/37f433152031cdb5c782d12fbcead2c97c49e0cf/src/ParseObject.js#L862

And here is the full ParseACL file: https://github.com/ParsePlatform/Parse-SDK-JS/blob/37f433152031cdb5c782d12fbcead2c97c49e0cf/src/ParseACL.js

like image 140
Tennyson H Avatar answered Nov 15 '22 06:11

Tennyson H