[Feature]: Nesting companies
Snipe-IT Version
v8.3.6 - build 20551 (master)
How can we help?
It would be nice to have the ability to set “Parent Company” and have users with a new permission “Access Subsidiary Company Assets”
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
I can definitely see how that would be useful, but it does create a lot of recursion possibilities and is generally a giant mess to try and test.
I see a couple possibilities to prevent deep recursions:
- Limit nesting to 1-2 companies deep
- Make the permissions a separate affair and the company nesting purely visual.
In the case of #2 you could add a button to a user to automatically recurse (as a one time deal) giving permissions to subsidiary companies.
I know when getting into long recursion operations with deeply nested items can cause some heavy DB ops and CPU usage, but that is heavily dependent on the hardware the install is on whether it will be problematic or not. That in mind, perhaps make it an option for the user with a warning about the impacts of deeply nested companies to enable/disable subsidiary support.
We have a use case for this as well. We ended up using custom fields, but this does not solve the problem completely. For us, the permission is the biggest issue.