snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

Support multiple companies [$500 awarded]

Open snipe opened this issue 13 years ago • 10 comments

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.

snipe avatar Nov 18 '13 01:11 snipe

I would use this for sure.

jlathrop avatar May 10 '14 03:05 jlathrop

I'd like that too!

jarnokurlin avatar Jul 22 '14 12:07 jarnokurlin

Very useful feature!

jkweh avatar Nov 09 '14 23:11 jkweh

One vote for this!

stuba avatar Apr 13 '15 06:04 stuba

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.

DWSR avatar Aug 09 '15 23:08 DWSR

Would definitely use this feature.

jonesluster avatar Aug 15 '15 19:08 jonesluster

This would be really useful to us, as well. What ballpark size of a bounty would be needed to get this to higher priority?

dc53000 avatar Sep 04 '15 18:09 dc53000

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.

snipe avatar Sep 04 '15 19:09 snipe

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 :)

ahimta avatar Nov 07 '15 12:11 ahimta

This is now on develop

snipe avatar Nov 24 '15 20:11 snipe