Support multiple companies [$500 awarded]
This is a fringe case, but it just so happens to apply in my case. My IT team services two sister companies within a parent holding company. Adding this as an enhancement, but unless I hear from other folks who really want this, it's low priority for now.
The $500 bounty on this issue has been claimed at Bountysource.
I would use this for sure.
I'd like that too!
Very useful feature!
One vote for this!
I would love this as well. My IT department actually services 3 organizations under the same brand. It's...challenging to keep track of everything.
Would definitely use this feature.
This would be really useful to us, as well. What ballpark size of a bounty would be needed to get this to higher priority?
It's a pretty massive project. I don't have any idea how much of a bounty would be needed, but it's a non-trivial change. It's on our roadmap, but not for the next few releases.
Hi @snipe, I just finished the initial implementation for multiple-companies support.
You can find the PR here: https://github.com/snipe/snipe-it/pull/1321 And the screenshots and other related files here: https://www.dropbox.com/sh/wugnzqepwgzwlnh/AAAwNWA5hIKrP0y2VTu-LMHHa?dl=0
I also fixed a security issue relating to CSRF in AdminController here
In addition, I noticed you have some other CSRF issues, pertaining mainly to using GET requests instead of POST, PUT or DELETE. Mostly for deletion routes.
Note that these issues still persist even if requests are authenticated. In fact, CSRF by definition, happens when the user is authenticated.
It may be tempting to use GET and pass a CSRF token as a query string. I would advise against it. Web browsers treat GET differently than other methods. So in general (almost) never use GET for anything that changes the DB state, unless you really know what you're doing.
I know this is outside the scope of this issue, sorry about that!
And please don't use tabs \t :)
This is now on develop