vaultwarden icon indicating copy to clipboard operation
vaultwarden copied to clipboard

Fix #3624: fix manager permission within groups

Open matlink opened this issue 1 year ago • 10 comments

Fix #3624 by checking if the user is member of a group that has access to the collection.

matlink avatar Aug 04 '23 19:08 matlink

What if a Manager is member of a group with access to all collections?

stefan0xC avatar Aug 04 '23 22:08 stefan0xC

What if a Manager is member of a group with access to all collections?

you are right, we lack something since in this case the manager cannot edit the collection. I'm looking into it, thanks =)

matlink avatar Aug 05 '23 09:08 matlink

@stefan0xC This d282b32d79dea870a54f7020a764b277702c4e54 should do the job.

matlink avatar Aug 05 '23 10:08 matlink

Any progress?

farodin91 avatar Sep 08 '23 07:09 farodin91

It has to be checked first. Did not had time yet to validate. Working on other issues when i have the time.

BlackDex avatar Sep 08 '23 08:09 BlackDex

@matlink, could you rebase and address the items mentioned by @stefan0xC? Looks ok for the rest of it i think.

BlackDex avatar Dec 31 '23 14:12 BlackDex

@BlackDex will do ;)

matlink avatar Dec 31 '23 15:12 matlink

@BlackDex @stefan0xC I've made the changes you requested and rebased. Needs further testing ;)

matlink avatar Jan 01 '24 19:01 matlink

I've taken the liberty to create a PR of my own https://github.com/matlink/vaultwarden/pull/1

stefan0xC avatar Jan 05 '24 07:01 stefan0xC

And, it needs a rebase of course. I tested it btw, including my suggestion, that seems to work fine.

BlackDex avatar Jan 27 '24 22:01 BlackDex

Hey Guys, I don't want to put pressure on you people, but do you think we can nudge this one over the finish line? I would literally send you pizza :))))

fthobe avatar Feb 15 '24 19:02 fthobe

So I just need to rebase?

matlink avatar Feb 16 '24 05:02 matlink

So I just need to rebase?

@matlink no see my request. And a rebase too of course.

BlackDex avatar Feb 16 '24 06:02 BlackDex

@BlackDex I've applied you suggestion. it looks like the rebase went well, no conflict. Keep me in touch if needed. Cheers,

matlink avatar Feb 17 '24 07:02 matlink

@BlackDex I've applied you suggestion. it looks like the rebase went well, no conflict. Keep me in touch if needed. Cheers,

@matlink well, a small item. The code isn't formatted correctly. Run a cargo fmt and that should be fixed.

BlackDex avatar Feb 17 '24 07:02 BlackDex

@matlink well, a small item. The code isn't formatted correctly. Run a cargo fmt and that should be fixed.

Done.

matlink avatar Feb 17 '24 12:02 matlink

Hey, can this be merged now? The issue seems to be resolved to everybody's satisfaction. If testing is needed I would volunteer.

fthobe avatar Feb 27 '24 14:02 fthobe