Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

New permission level? #1679

Closed
tech-andgar opened this issue Jan 21, 2020 · 5 comments
Closed

New permission level? #1679

tech-andgar opened this issue Jan 21, 2020 · 5 comments
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@tech-andgar
Copy link

tech-andgar commented Jan 21, 2020

• Version of Directus
8.4.0

• PHP version
7.2.24

• MySQL version
mysqld Ver 5.7.28

• Webserver + version
apache 2.4.29

I researched the documentation, but did not find Permissions new level.

I don't know how to express it. I tried some translation tools, but I wasn't satisfied.
I will describe it and see if you can understand it:

Client wants to manage the permissions to assign a user or several users (any role that items in a collection by created user ) to be able to read or modify in a collection item. Because Directus only has to manage items in mine only (Created by or modified by) or Role only (Created by or modified by)

image

@benhaynes benhaynes added needs more info Further Information Needed question Further information is requested labels Jan 22, 2020
@benhaynes
Copy link
Sponsor Member

Hey @andgar2010 — I'm not sure I completely understand this new permission level. It sounds like our "Role Only" would work... but maybe I'm misunderstanding.

Could you use an example to describe what you're looking for?

@tech-andgar
Copy link
Author

Hi @benhaynes
Give a example of User history:
A collection is composed of 3 actors which are: client, coordinator and agent (the coordinator and the agent being related to a place).

The client can create a request (new item in the collection with data: place id, date created in and created by client) and read by its created.

The coordinator can read only the assigned place and change the request only to assign or change the agent.

The agent can read and modify the service only when the coordinator has assigned a request to it.

@benhaynes
Copy link
Sponsor Member

Ahh, this is a very complex edge-case then. You still might be able to accomplish this with the "My Role Only" permission and setting the "owner" through event hooks, or maybe even with custom interfaces.

Still, I'll close this as a duplicate of our more robust permission system that will likely be included in the Laravel API port we're working on now: #511

@benhaynes benhaynes added duplicate This issue or pull request already exists and removed needs more info Further Information Needed labels Jan 23, 2020
@tech-andgar
Copy link
Author

tech-andgar commented Jan 24, 2020

@benhaynes - Let's talk about this topic, but can permissions be granted for fields (CRUDE)?

@benhaynes
Copy link
Sponsor Member

Yes, you can toggle field READ/WRITE access (and you can do so per status):

https://docs.directus.io/guides/permissions.html#field-level

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants