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

Not enough permissions to upload a file in a community #1415

Open
psaiz opened this issue Aug 15, 2023 · 1 comment
Open

Not enough permissions to upload a file in a community #1415

psaiz opened this issue Aug 15, 2023 · 1 comment
Labels
bug Something isn't working stale

Comments

@psaiz
Copy link
Contributor

psaiz commented Aug 15, 2023

Package version (if known): 4.13.1

Describe the bug

Uploading a file for a community gives a

{status: 400, message: "A validation error occurred.",…}
errors
: 
[{field: "access", messages: ["You don't have permissions to manage record access."]}]
message
: 
"A validation error occurred."
status
: 
400

Steps to Reproduce

  1. Be logged in as a NON admin user.
  2. You need to have a private community created by your user
  3. Go to Upload file
  4. Click on communities, and add a community with private settings.
  5. Enable the developers tools on the browser.
  6. Click on upload file, and select a file .
  7. Note that the request ./api/records?expand=1 fails with the error that `You don't have permissions to manage record access

Expected behavior

Step number 6 should work. Note that if instead of starting from upload and then selecting the community, we start directly from the upload within the community, things work as expected.

Screenshots (if applicable)

Screenshot 2023-08-15 at 14 35 24

Additional context

@psaiz psaiz added the bug Something isn't working label Aug 15, 2023
@github-actions
Copy link
Contributor

This issue was automatically marked as stale.

@github-actions github-actions bot added the stale label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant