Quote:
Originally Posted by joyel
Hello,
I'm having some problems with staff tools. As of now only 'staff leader' can use those tools. Other staff usergroups such moderator, administrator, and sysop receive 'access denied' error while trying to use them. I checked the 'edit' page under staff panel and the permission setting looks alright.
How can I fix this? Any help would be greatly appreciated.
Cheers!
Bump: Can anyone shed some light on this?
|
Cross check what class is able to view in the section.
eg.
PHP Code:
If ($CURUSER){
// is a member
}
or
PHP Code:
if ($CURUSER['class'] >= UC_OWNER) {
/* Script go's here and will only be viewed by the owner class*/
}
or
PHP Code:
if (get_user_class() < UC_OWNER) {
/* Script go's here and will only be viewed by the owner class*/
}
or
PHP Code:
if ($CURUSER['class'] >= UC_MODERATOR) {
/* Script go's here and will only be viewed by the mod class*/
}
or
PHP Code:
if (get_user_class() < UC_MODERATOR) {
/* Script go's here and will only be viewed by the owner class*/
}
Also check the operators
= Equal
+ Plus
- minus
* multiply
> Greater than
< Smaller then
/ Division
<> not equal
!= Not equal
>= Greater than or equal to
<= Smaller than or equal to
== Equal