Anonymous user can't switch perspectives - new permission needed.
- Status
- Open
- Subject
- Anonymous user can't switch perspectives - new permission needed.
- Version
- 26.x
27.x - Category
- Usability
- Developer Training
- Feature request
- Feature
- Perspectives
- Resolution status
- New
- Submitted by
- Gary Cunningham-Lee
- Lastmod by
- Gary Cunningham-Lee
- Rating
- Description
It's sometimes useful to allow anonymous or other users without full perspectives-related permissions to switch perspectives. For example, I want to demonstrate themes by using a link such as
tiki-switch_perspective.php?perspective=21, in a dropdown menu, to switch to perspective 21. This perspective has preferences including a home page with info about the theme, using the theme itself, and so on, all set by the perspectives feature. The user continues to be in that perspective after leaving the page, so can see a blog or calendar or whatever using that theme, until switching to another perspective. This works fine for admin, who has all current perspectives permissions, but doesn't work at all for anonymous users. Visiting the page shows the theme set for the page but doesn't change the perspective.I imagine there could be other scenarios where users would select a perspective and stay in it until they switch to another one.
There are now four permissions related to perspectives:
- Can admin perspectives (tiki_p_perspective_admin)
- Can view the perspective (tiki_p_perspective_view)
- Can edit the perspective (tiki_p_perspective_edit)
- Can create a perspective (tiki_p_perspective_create)
I propose that another permission be added:
- Can switch perspectives (tiki_p_perspective_switch)
Or whatever fix would be effective here. The "Users can change theme" option on tiki-admin.php?page=look serves the same purpose but seems to be set via that admin page rather than on tiki-objectpermissions.php.Somewhat strangely, if I give anonymous the "Can create a perspective (tiki_p_perspective_create)" permission, then switch-perspective works for anonymous, who can see the list on tiki-edit_perspective.php and can input a perspective name but it doesn't appear in the list to be edited, etc. so this could be a hacky workaround but the clean solution of a new permission would be much better.
- Importance
- 8
- Easy to solve?
- 7
- Priority
- 56
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8618
- Created
- Sunday 07 April, 2024 08:28:32 UTC
by Gary Cunningham-Lee - LastModif
- Sunday 07 April, 2024 08:45:44 UTC