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

Can't create read only tables #577

Closed
eneesolutions opened this issue Nov 11, 2021 · 3 comments · Fixed by #631
Closed

Can't create read only tables #577

eneesolutions opened this issue Nov 11, 2021 · 3 comments · Fixed by #631
Assignees
Labels
enhancement New feature or request

Comments

@eneesolutions
Copy link

Describe the bug
I have created a table to view users and I want to prevent any writing or adding rows/columns or deleting.

I have set up the security rules with write set to false for my USER role, this works.

However the UI does not update, so it looks like the logged in USER can make changes to the table, which makes for a bad experience.

Is there some way to set a table as read-only for some roles?

@notsidney
Copy link
Contributor

Hi, you can set all the columns in the read-only table to be Locked in the column menu. This prevents the user from being able to edit the data in the UI, preventing the issue you said where it looks like the user can edit data but isn’t reflected on Firestore because of security rules

@eneesolutions
Copy link
Author

Locking the columns did improve the situation slightly, but my USER role can still duplicate rows, try to delete and add columns etc.

I've attached a screenshot of the areas I wouldn't want the user to see and confuse them:

Screen Shot 2021-11-12 at 12 02 59

@notsidney
Copy link
Contributor

Thanks for this, we’ll definitely look into adding read-only tables to make this simpler

@notsidney notsidney self-assigned this Nov 12, 2021
@notsidney notsidney added the enhancement New feature or request label Nov 12, 2021
notsidney added a commit that referenced this issue Dec 17, 2021
@notsidney notsidney linked a pull request Feb 2, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants