Skip to content

[FR] Add per Object permissions and orgs #2323

Open
0 of 1 issue completed
Open

Description

@matmair

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.

Do you want to develop this?
Yes

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    enhancement
    on Nov 18, 2021
  2. added
    plugin
    on Nov 18, 2021
  3. SchrodingersGat commented on Nov 18, 2021

    @SchrodingersGat
    Member

    @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?

  4. matmair commented on Nov 18, 2021

    @matmair
    MemberAuthor

    @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?

    @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.

  5. SchrodingersGat commented on Nov 18, 2021

    @SchrodingersGat
    Member

    Ah ok, that is a nice idea, I can see it being quite difficult to implement?

  6. matmair commented on Nov 18, 2021

    @matmair
    MemberAuthor

    Ah ok, that is a nice idea, I can see it being quite difficult to implement?

    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.

  7. added
    security
    on Nov 18, 2021
  8. moved this to Waiting for go ahead in Pers. Overview for InvenTreeon Nov 23, 2021
  9. eeintech commented on Feb 3, 2022

    @eeintech
    Contributor

    @matmair Do you intend to use the django-guardian library to implement this FR?

  10. matmair commented on Feb 3, 2022

    @matmair
    MemberAuthor

    @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.

  11. added this to the 0.7.0 milestone on Feb 8, 2022
  12. SchrodingersGat commented on May 5, 2022

    @SchrodingersGat
    Member

    @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?

  13. matmair commented on May 5, 2022

    @matmair
    MemberAuthor

    @SchrodingersGat I already started work on this, 0.8.0 or even a 0.7.x should be reasonable

  14. 7 remaining items

  15. matmair commented on Jan 15, 2023

    @matmair
    MemberAuthor
  16. modified the milestones: 0.10.0, 1.0.0 on Jan 17, 2023
  17. modified the milestones: 1.0.0, horizon on Jun 7, 2023
  18. added
    Seeking Funding
    on Apr 2, 2024
  19. removed
    Seeking Funding
    on Mar 20, 2025
  20. moved this from Todo to Done in User Interface Redesignon Apr 28, 2025
  21. modified the milestones: horizon, 2.0.0 on Apr 28, 2025
  22. added
    Seeking Funding
    on Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Seeking Fundingenhancementpluginsecurity

    Type

    No type

    Projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions