Loading...
 
Skip to main content

Permissions : advanced feature: level configuration : it should be impossible to create blank level

Status
Closed
Subject
Permissions : advanced feature: level configuration : it should be impossible to create blank level
Version
1.9.x
Category
  • Error
Feature
Permission
Resolution status
Out of Date
Submitted by
Marc Laporte
Lastmod by
Marc Laporte
Rating
(0)
Description

In tiki-assignpermission.php, if you create a blank level and then, you have blank levels for some permissions, you will get an error like:

Image
Copy to clipboard
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Only one top level element is allowed in an XML document. Error processing resource 'tiki-assignper... <b>Notice</b>: Undefined index: tiki_p_take_quiz in <b>tiki-...


And you can't via the interface re-assign the level to that permission. You need to clean the mess in phpmyadmin



If you have phpmyadmin, to reset permissions to original state:

1- go here:
http://tikiwiki.cvs.sourceforge.net/tikiwiki/tiki/db/tiki.sql?revision=1.214.2.215&view=markup&pathrev=BRANCH-1-9Question

2- find "Table structure for table users_permissions"

and copy/paste that section (just that section) in sql commands

lines 4001 to 4191



reported by johnh on #tikiwiki

Maybe 1.10 is affected as well...

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1693
Created
Saturday 12 April, 2008 23:27:14 UTC
by Unknown
LastModif
Friday 15 January, 2010 18:48:18 UTC


Show PHP error messages