User level and edit pages in WP 1.5
-
Something’s wrong :
When I’m logged as admin, level 10, I can only see, edit, delete in edit/pages the 33 first pages.
When I’m logged as a simple user, level 2, I can see, edit, delete all pages, made by everyone…
So it is not a time out issue with database !
I have tried to comment :
$posts = $wpdb->get_results("
SELECT $wpdb->posts.*, $wpdb->users.user_level FROM $wpdb->posts
INNER JOIN $wpdb->users ON ($wpdb->posts.post_author = $wpdb->users.ID)
WHERE $wpdb->posts.post_status = 'static' AND ($wpdb->users.user_level < $user_level OR $wpdb->posts.post_author = $user_ID)
");in wp-admin/edit-pages.php. When I do that, nothing appears.
So it is not a user cookie issue !
I have try too to change permissions in wp-admin/menu.php and I have put :
$submenu['edit.php'][10] = array(__('Pages'), 3, 'edit-pages.php');
instead of
$submenu['edit.php'][10] = array(__('Pages'), 2, 'edit-pages.php');
And when I log as a user level 2, it says I haven’t rights to go to this page.
So it is really not a user identification issue !
I’m lost. If someone have an idea, he will save my reason.
I can’t upgrade WP because it would need a lot of work to make everything goes right in my site again, and I haven’t time until may.
All people have stop to work because of this problem on https://www.cometes.org /
- The topic ‘User level and edit pages in WP 1.5’ is closed to new replies.