Project:Role Theme Switcher
Version:6.x-1.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

Does anyone know how role theme switcher handles users assigned to multiple roles? Does it just arbitrarily pick one or is there some method that will allow me to predict which theme they will see?

Comments

#1

Assigned to:Anonymous» tiutiun
Status:active» fixed

The order of assigning themes corresponds to the order of roles on interface admin/user/roles
The lower is the position of Role in list - the higher is priority.

Please examine attached image.
For ex.: User has roles "authenticated", "admin" and "NCP"
He will got theme, that corresponds to "NCP" role.

AttachmentSize
scshot.png 14.74 KB

#2

Category:support request» feature request
Assigned to:tiutiun» Anonymous
Status:fixed» active

Thanks @tiutiun

Feature request:
It would be useful if the admin could select the theme that is to appear for users with multiple roles. Maybe the default behavior would remain as it is now but there was an override option that would allow a certain role to take precedence in the theme assignment. (Maybe roles could be weighted--only for this module.)

Why it matters:
Many sites (mine included) have several roles, each with unique permissions. Since some roles do not use some blocks, those blocks do not appear in their respective themes. The way the system is currently, I need to rename all of the themes so that the "heaviest" will be last alphabetically so that users with multiple roles can get access to the themes with the most available blocks.

#3

It makes sense :-)
I'll think about it in future releases
By the way, could you please give a kind of sketch proposal - how would you like to see the interface with this feature?

#4

Status:active» needs work
nobody click here