cp-nav icon indicating copy to clipboard operation
cp-nav copied to clipboard

Tie in items with permissions/user groups

Open JayBox325 opened this issue 10 months ago • 2 comments

What are you trying to do?

Similar to my requirements for #144, trying to set up different menu configurations for different user groups.

What's your proposed solution?

I was thinking instead of having to duplicate a layout and apply different permissions for those layouts, we could just set up permissions/user groups within the menu items themselves so it's just one layout that appears differently for the different user groups which will be much less management of the different layouts.

Additional context

No response

JayBox325 avatar Feb 11 '25 10:02 JayBox325

So I'll mention that I think I'm opposed to this, purely out of complexity issues, and performance. If we manage permissions per-nav item, that's a whole lot of checking we need to do against every menu item. Similarly, just the UI to be able to manage permissions is a bit cumbersome.

So I'd say that permissions managed on the layout are here to stay. Appreciate the suggestion - never say never!

engram-design avatar Feb 13 '25 00:02 engram-design

That's totally fair. If you're happy to do duplication from https://github.com/verbb/cp-nav/issues/144#issuecomment-2655140714, that solves my problem! Cheers

JayBox325 avatar Feb 13 '25 09:02 JayBox325