[2.0.10] Moderator CP

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
95
65%
Very Good
27
18%
Good
13
9%
Fair
3
2%
Poor
9
6%
 
Total votes: 147

jesj
Registered User
Posts: 5
Joined: Thu Apr 10, 2008 7:47 am

Re: [2.0.10] Moderator CP

Post by jesj » Tue Apr 22, 2008 2:23 am

thanks all I needed to change was

Code: Select all

if( $userdata['user_level'] != ADMIN )
to

Code: Select all

if( $userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD )
that was the only line I needed to change, but it works now. So thanks for the help.

User avatar
milkman
Registered User
Posts: 165
Joined: Mon Nov 29, 2004 1:55 am
Location: Loughborough, UK
Contact:

Re: [2.0.10] Moderator CP

Post by milkman » Tue Apr 22, 2008 6:32 am

I'm glad you got it all working okay. You can probably remove the following block since modcp does it's own permission check above. I believe this is where you made your extra edit?

Code: Select all

if( $userdata['user_level'] != ADMIN )
{
   message_die(GENERAL_MESSAGE, $lang['Not_Authorised']);
} 
Milkman [MilkHub]

Post Reply

Return to “[2.0.x] MOD Database Cleanup”