Forums

Admin Trouble With Pages (5 posts)

  1. maestro42
    Member
    Posted 7 years ago #

    Hey all,
    I wanted to create another 'admin' user for my blog. I use MyPhpAdmin to make his user level to '10'. It seemed that gave him admin access. He can write pages and such, but when he goes to manage the pages - it says no pages yet. ? It's really strange - he can edit and delete everything else but this.

    Any ideas on a solution ? thanks!!

  2. Michael Adams (mdawaffe)
    Member
    Posted 7 years ago #

    In Manage->Pages a user will see those Pages he/she has written and all Pages from users with a strictly lower user level. Thus, another user with level 10 cannot see the Pages created by Admin (10 is not less than 10).

    I suppose ideally there'd be some cutoff: All users above level 8, say, can edit all Pages. You can file it as a bug.

  3. maestro42
    Member
    Posted 7 years ago #

    thanks alot mdawaffe

    anybody know of a way to change this cutoff - im sure somewhere in the code it has to say if < x or wahtever that i can change it to if <= x ?

  4. Michael Adams (mdawaffe)
    Member
    Posted 7 years ago #

    In a SQL query right near the top of wp-admin/edit-pages.php

  5. maestro42
    Member
    Posted 7 years ago #

    thanks alot!
    I fixed this line of code:
    AND ($wpdb->users.user_level < $user_level OR $wpdb->posts.post_author = $user_ID)

    to just say

    users.user_level <= $user_level OR

    and it worked perfectly. thanks again

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.