verbb / cp-nav

Control Panel Nav is a Craft CMS plugin to help manage your Control Panel navigation.
MIT License
130 stars 11 forks source link

Which layout applies for users in multiple groups? #73

Closed KatieMFritz closed 4 years ago

KatieMFritz commented 4 years ago

I'm using granular user groups (blog editor, courses editor, etc.) and some users are in multiple groups.

How does cp-nav know which layout to use for a user?

Would the best way to handle this be creating unique user groups for each layout isntead?

ademers commented 4 years ago

I have the same question.

engram-design commented 4 years ago

Yep, so the best course of action is to create a user group for the layout and apply that. Otherwise, you'll get the first layout for the matching group, in order of when you created the group.

So if you have a user, who belongs to "Group 1" and "Group 2" (created in that order). You have a layout setup for each of these groups, but the CP Nav they'll see will always be the layout for Group 1.