Quote:
Originally Posted by EvilLS1
You want to stop certian user groups from adding timeslip info but they can still see the timeslips page right?
If so, in profile.php find this:
Code:
if ($_REQUEST['do'] == 'edittimeslip')
{
Add this below it:
(change the x's in array(x,x,x) to the group IDs that you don't want to have access).
Code:
if (in_array($bbuserinfo['membergroupids'], array(x,x,x)))
{
print_no_permission();
}
|
This doesn't seem to work for me. I had a line existing, so I just added the membergroupids thing after it.
Code:
if ($_REQUEST['do'] == 'edittimeslip')
{
if ($bbuserinfo[userid]==0 or $bbuserinfo[tdban]==0 or in_array($bbuserinfo['membergroupids'], array(1,2,3,4,5,6,7,8,9,10)))
{
print_no_permission();
}
unset($tempcustom);
...
When I login as anybody, it still allows me to edit the Vehicle Profile. I have added all the groupids, but still I seem to be missing something.
Any ideas?