-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Extension
Something else
Describe the Bug
When logged in as a non-admin user (even with full CRUDS access to all tables), the sort handles of the "tree view table" layout don't appear:
When I add "administrator" privileges to that user, the handles correctly show up:
I would expect the handles to show up if the user has access to the "sort" and "parent_id" columns, without requiring administrator privileges.
It is also interesting to note that the sort handles do appear without administrator privileges when using the regular table layout:
To Reproduce
Using an admin user:
- Create a
pages
collection, with UUIDid
, as well as asort
field. - Add a M2O field named
parent_id
, pointing to anotherpages
item - Create a page with no parent
- Create another page with the previous page as parent
- In the Pages list, select the "Tree View Table" layout and set it to use the "Parent ID" field as parent.
The pages show up in a tree view, as expected. Then:
- Create an
editor
role, with afull access
policy that has access to the app, full CRUDS access to all tables, but with administrator privileges disabled. - Create a user and give it the
editor
role. - Log in as that user, open the "Pages" list and setup the "Tree View Table" as before.
The pages appear, but without sorting handles nor indents.
Directus Version
v11.5.1 with @directus-labs/tree-view-table-layout
v1.0.1
Hosting Strategy
Self-Hosted (Docker Image)
sarah-a-hannlzzfnc, gla23 and g-hartmann-kanguro
Metadata
Metadata
Assignees
Labels
No labels