Restricting User Access by Location #9675
Replies: 2 comments
-
Our permissions system is not currently fine-grained enough to support this although there are multiple discussions and issue where we have considered something like this. We would like to see supported via plugins (not mainline code) as the use cases are too specific and varied. Here are some other outstanding issues where we have been discussing similar things.
Basically what we need to achieve is a major permissions refactoring which allows plugins to perform:
Those two points will take a significant amount of work. But once they are done, it would be relatively easy to create a plugin which assigns permissions between a particular owner and a particular location. We will not be doing this until after the 1.0.0 release which is our current focus point. However we can start a discussion and if you would like to assist either with code or financial support that would be appreciated 👍 |
Beta Was this translation helpful? Give feedback.
-
Also see the assumed trust https://docs.inventree.org/en/latest/concepts/threat_model/#assumed-trust |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm looking for some guidance.
I need to restrict access for users with limited permissions so that they can only view or interact with data related to their assigned locations. This seems like a basic and expected feature, but I don't see it currently implemented. Does such functionality exist?
If not, I'm considering implementing it myself. One approach is to define a relationship between users and stock locations (either many-to-many or one-to-many), and then enforce access control based on that.
My question is:
If there's a recommended way to achieve this using a plugin, I’d appreciate any pointers.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions