-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Role.getUsers.query not showing user with private read permission #1813
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
Comments
Can you please post some code that demonstrates what you are doing, what you expected to happen, and what actually happened? |
I have an role Amin with public read and private write permission
and a root User with private read and write permission
root User belongs to role Amin
When I logged in root User and executed this code, it doesn't list the user
|
I apologize if my issue is not the same but I think I am having a similar problem. I have written the following code to assign 'standardUser' role to all of the users in the Users collection.
The code runs and the logging indicates that ALL users were updated. However, when I go to the Data browser. click on the ROLE and then click on View Relations under on the users field. I only see 2 users listed. |
@araskin Can you provide the logs when running with VERBOSE=1 |
Hi @flovilmart I am not sure I am doing this right.
then I ran the following command
Then I click on ROLE collection, and clicked on the View Relations button on the appropriate record. Problem is I am not sure where the logs are. I checked where parse-dashboard module is installed but don't see anything there. Any ideas where I can see these logs? |
@araskin can you update parse-server to it's latest version 2.2.23 and comment back? |
Unfortunately no change after the update. I don't see any difference when I click on View Relations I made some small code changes but nothing seriously changed:
Whats interesting is that after every call to |
This is still a major issue. Our app is unable to share permissions with other users do to this bug. Same code from api.parse.com but when using parse-server 2.2.25 its still not working as expected. Does anyone have a work around? This in my mind would be a MAJOR bug for apps sharing permissions across user accounts. Any help would be great. |
@corbanb contributions are welcome, not sure as you're not the one reporting the issue if the STR is accurate. A pull request with a failing test would be helpful to get us started. |
I added a test #3198 and it was merged in. Digging into the test helped me understand the way this had to happen for me. Hope it helps others. |
Did you need any major code change to make it work? |
This seems rather unclear and was never accurately identified with any reproducible code. Closing this out for now. If anyone is having issues with this let us know and we'll reopen to take a look. |
even if I logged in that user and executed the query
The text was updated successfully, but these errors were encountered: