Need way to auto assign tiki_p_edit_categories (for tiki_p_view_categories) on upgrade to 1.10
- Status
- Closed
- Subject
- Need way to auto assign tiki_p_edit_categories (for tiki_p_view_categories) on upgrade to 1.10
- Version
- 2.x
- Category
- Error
- Feature
- Category
Installer (profiles, upgrades and server-related issues) - Resolution status
- Please retest
- Submitted by
- Nelson Ko
- Volunteered to solve
- Nelson Ko
- Lastmod by
- Nelson Ko
- Rating
- Description
Hi,
It just occurred to me that when upgrading to 1.10, users will need a script or something to create tiki_p_edit_categories perms for each tiki_p_view_categories perm that category objects have in the db.
This is necessary to preserve backward compatible state when upgrading, because tiki_p_edit_categories does not exist in 1.9.
Anyone good enough in SQL to write this purely in SQL, or should this be part of the PHP in the upgrade/install script for 1.10?
- Solution
Solution is now to add tiki_p_edit_categorized and tiki_p_view_categorized by the tiki-installer.php script.
Manually running the tiki_1.9to1.10.sql script is not sufficient unless you manually add these new group and category perms to groups.The reason why the adding is done outside the regular sql script is because these additions should only be applied if upgrading from 1.9, and not if you are already in 1.10 (in case you have changed these perms for groups after the first upgrade).
should be fixed now, in time for beta 1. waiting for further testing verification.
- Importance
- 9 high
- Priority
- 45
- 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
- 1114
- Created
- Tuesday 05 June, 2007 12:39:50 UTC
by Unknown - LastModif
- Sunday 18 December, 2011 04:01:39 UTC