Skip to content

Remove write access from _User #602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Samigos opened this issue Jul 12, 2018 · 3 comments
Closed

Remove write access from _User #602

Samigos opened this issue Jul 12, 2018 · 3 comments

Comments

@Samigos
Copy link

Samigos commented Jul 12, 2018

Parse Server version: 2.7.4

I'm trying to remove the write access from users, as a security measure. This is the acl I use:

var custom_acl = new Parse.ACL();
			
custom_acl.setReadAccess(userObject, true);
custom_acl.setPublicWriteAccess(false);

userObject.setACL(custom_acl);

userObject.save(null, {useMasterKey: true});

But it doesn't work! After that, I have the read access set correctly, and it continues to have a write access for that user.

Any idea on why this is happening?

@flovilmart
Copy link
Contributor

flovilmart commented Jul 12, 2018

See parse-community/parse-server#4860 and related issues. You can use the master branch of parse server to try out if it fixes the issue .

@Samigos
Copy link
Author

Samigos commented Jul 12, 2018

The link is invalid...

@flovilmart
Copy link
Contributor

@Samigos sorry about that, I just updated it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants