View Full Version : Permissions system and redirection
Lionel
12-31-2005, 08:00 PM
When someone attempts to reach a member only page and is presented with the login page, how do you allow him to continue what he was doing after successful login?
Guest190829
12-31-2005, 08:01 PM
Well if he has permission to go one with the usergroup he is in he will be able proceed, otherwise he'll get another no_permissions error.
Lionel
12-31-2005, 08:05 PM
Well it's not happening with the pages that I am building which is a form. It gets filled, if not logged on, you get logon page, and after logon it kicks you back to page that you used to get into the form bage, like back-2
Guest190829
12-31-2005, 08:21 PM
if ( $permissions['myhackpermissions'] & $vbulletin->bf_ugp['myhackpermissions']['canfoo'] )
{
// You have permission, proceed with the code...
}
else
{
// function to print no permission....
print_no_permission();
}
https://vborg.vbsupport.ru/showthread.php?t=82844
Lionel
12-31-2005, 08:46 PM
if (!$bbuserinfo['userid'] OR !($permissions['forumpermissions'] & CANVIEW))
{
print_no_permission();
} 3.07 and it is not doing it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.