Skip to content

Editors can view table structure #2395

Description

@mathgim

Describe the current behavior

Hello @dsagal,
I have seen your latest work on permitting editors to edit table structure. I have found out a weird thing with ACL for editors. Currently, editors, in some conditions, can see table structures even thoug we have not allowed them to edit table structure nor allow them to see any row from this table.

cc @hexaltation

Steps to reproduce

Here is a link of the Grist template I created for this issue.

The formula rec.id in user.Team.Main_Data is to me badly interprated by Grist core. This formula is used in a table rule to allow users to have access to specific rows and is used in addition with user.Access in [EDITOR] that I added in the by-default Grist file rule.

Some details of the template below:

  1. ACL
Image
  1. Data
Image Image
  1. What Paul sees
Image

Describe the expected behavior

Paul should not even see the "Main data" table as he has access to zero row. Specifically, Paul should see an empty Grist document

If a user has access to zero rows of a table, it should not be able to see the table structure.

Where have you encountered this bug?

Instance information (when self-hosting only)

  • Grist instance:

    • Version:
    • URL (if it's OK for you to share it):
    • Installation mode: docker/kubernetes/...
    • Architecture: single-worker/multi-workers
  • Browser name, version and platforms on which you could reproduce the bug:

  • Link to browser console log if relevant:

  • Link to server log if relevant:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions