Skip to content

Remove write access from _User #602

Closed
@Samigos

Description

@Samigos

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions