Permissions for modules (and bar) and other APP UI components #20975
emahuni
started this conversation in
Feature Requests
Replies: 1 comment 2 replies
-
I'm facing the same limitation: in my application, some roles need to maintain READ access to a collection for the sake of some extensions, but not see it in UI.module-nav. Meanwhile this useful feature is implemented, how can I hide some collections based on the user's role using CSS? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
With an application that has several modules that we may not want certain user roles or users to access, I think it could be beneficiary for Directus to have some sort of way to also restrict access to modules based on roles just like the collection permissions.
In addition to collections permissions CRUD..., custom permissions could also go a long way to ensure that we can add some custom permissions configurations easily.
Basic Example
Modules permissions
I want role A to be able to access module "Test", but role B should not. Therefore, the Test module icon should not appear on the modules bar for Role B, but should appear for role A.
Custom Permissions
Given that we have a messages module, that has other actions that a user can take, I may want role A to be able to send chat messages, but not role B. A "send messages" permission should be configurable in ACL view. This is defined by the admin.
Motivation
Different roles should be able to access different modules, content/collections, components and do different things from each other within the same app.
Detailed Design
NA
Requirements List
All major APP components need to be permissible. eg:
Drawbacks
I have noticed a huge rewrite coming for roles and permissions; therefore, this may need to be considered as well.
Alternatives
I have workarounds, but they are hacky, hence the request:
Adoption Strategy
NA
Unresolved Questions
No response
Beta Was this translation helpful? Give feedback.
All reactions