You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeking FundingThis issue can be specifically funded for developmentenhancementThis is an suggested enhancement or new featurepluginPlugin ecosystemsecurityRelates to a security issue
Problem
The current permissions do not allow for multitenancy / multiple orgs in one instance.
Suggested solution
Add one of the libraries that allow per-object permissions.
Describe alternatives you've considered
I currently do this with a tenancy solution based on postgres schema-switching. Only works on postgres and could be broken / makes migrations difficult.
Examples of other systems
GeoNode has this for example.
@eeintech yes, but it will take a while, it is fairly low on my priority list. There are a few devops, notification and security things I would like to see fixed before. And pricing needs a refactor.
Seeking FundingThis issue can be specifically funded for developmentenhancementThis is an suggested enhancement or new featurepluginPlugin ecosystemsecurityRelates to a security issue
Activity
matmair commentedon Nov 18, 2021
https://django-guardian.readthedocs.io/en/stable/configuration.html
SchrodingersGat commentedon Nov 18, 2021
@matmair what do you mean by "multiple orgs" in one instance here?
Do you mean supporting multiple InvenTree databases in one server instance, be it bare-metal or docker?
matmair commentedon Nov 18, 2021
@SchrodingersGat different departments / sections / clubs in the entity that has an InvenTree instance.
One database but restricting access per part etc. to select groups / users.
SchrodingersGat commentedon Nov 18, 2021
Ah ok, that is a nice idea, I can see it being quite difficult to implement?
matmair commentedon Nov 18, 2021
Each permission check statement needs to be ammended but it should not be too bad. I will take a look after the current things are done.
eeintech commentedon Feb 3, 2022
@matmair Do you intend to use the
django-guardianlibrary to implement this FR?matmair commentedon Feb 3, 2022
@eeintech yes, but it will take a while, it is fairly low on my priority list. There are a few devops, notification and security things I would like to see fixed before. And pricing needs a refactor.
SchrodingersGat commentedon May 5, 2022
@matmair I think this is a lower priority than say the pricing refactor issues, shall we bump this down the road to (at least)
0.8.0?matmair commentedon May 5, 2022
@SchrodingersGat I already started work on this,
0.8.0or even a 0.7.x should be reasonable7 remaining items
matmair commentedon Jan 15, 2023
See https://github.com/paperless-ngx/paperless-ngx/pull/2147/files