Skip to content
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

Permission Denied CLP Role #1991

Closed
dcdspace opened this issue Jun 5, 2016 · 8 comments
Closed

Permission Denied CLP Role #1991

dcdspace opened this issue Jun 5, 2016 · 8 comments

Comments

@dcdspace
Copy link

dcdspace commented Jun 5, 2016

I have a role named "admin" in which users of that role should be able to delete objects. I have created a CLP for that role to allow only admins to delete, but I am getting "Permission Denied For This Action".

I have verified that the user is a member of the admin role, and that I am passing the session token properly by adding a user pointer CLP with delete permissions, and that works.

See the screenshot below of the CLP editor.
screen shot 2016-06-05 at 7 16 59 pm

@flovilmart
Copy link
Contributor

I'll have a look.

flovilmart added a commit that referenced this issue Jun 6, 2016
@flovilmart
Copy link
Contributor

Just added a test in the PR I'm working on, does that encompasses what you see?

@dcdspace
Copy link
Author

dcdspace commented Jun 6, 2016

Thank you and yes it does, essentially creating an admin role with a new user, and then having an object that can only be deleted by the admin role. Only issue is that admins cannot delete the object.

@flovilmart
Copy link
Contributor

Seems that it works with the PR.

@dcdspace
Copy link
Author

dcdspace commented Jun 6, 2016

Any ideas? It is strange why it works with the user pointer but not with the role, when the same user is clearly part of the role (see screenshots).
screen shot 2016-06-05 at 10 56 27 pm
screen shot 2016-06-05 at 10 56 39 pm
screen shot 2016-06-05 at 10 57 07 pm

drew-gross pushed a commit that referenced this issue Jun 6, 2016
* Fixes for Pointer Permissions

- Fix bug that would leave public CLP when setting a new set of permissions
- Sets empty permissions if missing to match parse.com API
- Updates tests to reflect changes

* Adds regression test for #1991

* Fit -> It
@drew-gross
Copy link
Contributor

Fixed by #1989

@dcdspace
Copy link
Author

@flovilmart I just updated my server to 2.2.13 and am still experiencing the same issue. My workaround for now is to add the user ids as pointers in CLPs, but obviously that is not a long term solution. Thanks.

@tomcooperandco
Copy link

@dcdspace I'm experiencing the same issue. Did you resolve this?

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

4 participants