02-28-2017, 11:20 PM
if(hasPerm([1],$user->data->id()){
Redirect::to('$us_url_root.'users/account.php');
}
if(hasPerm([2],$user->data->id()){
Redirect::to('$us_url_root.'users/admin.php');
}
?>
this is what i have now but it doesnt work it says syntax error ...
Redirect::to('$us_url_root.'users/account.php');
}
if(hasPerm([2],$user->data->id()){
Redirect::to('$us_url_root.'users/admin.php');
}
?>
this is what i have now but it doesnt work it says syntax error ...