[wp-trac] Re: [WordPress Trac] #3533: Admin pages created by
Plugins get permissions errors
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 7 10:28:25 GMT 2007
#3533: Admin pages created by Plugins get permissions errors
----------------------------+-----------------------------------------------
Reporter: mattyrob | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.0.7
Component: Administration | Version: 2.0.6
Severity: major | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Comment (by mattyrob):
Yes, I'm sure that the user has "read" capability as:
1/ they are a registered WP blog user with WP user-level 0 in the database
2/ they can access Dashboard and Profile menus
3/ It worked from 2.0.0 thru 2.0.5 with no problems
On further digging there is a commented "echo" command in the
user_can_access_admin_page() function that lists the menu array. If this
line of code is allowed to execute for a level 0 users the menu array is
different for each option.
For Dashboard
parent array: index.php
parent array: post.php
parent array: edit.php
parent array: link-manager.php
parent array: themes.php
parent array: plugins.php
parent array: profile.php
parent array: options-general.php
parent array: import.php
For Profile->My Profile
parent array: index.php
parent array: post.php
parent array: edit.php
parent array: link-manager.php
parent array: themes.php
parent array: plugins.php
parent array: profile.php
For Profile->Subscriptions
parent array: index.php
parent array: post.php
parent array: edit.php
Followed by the access error message
Could it be to do woth the menus are being constructed differently?
Especially as I also hook another page into the edit.php page.
--
Ticket URL: <http://trac.wordpress.org/ticket/3533#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list