Gossamer Forum
Home : Products : DBMan : Customization :

Restrict login access

Quote Reply
Restrict login access
Hi everyone;

I know how to restrict access through a link with a new permission (ie. if per_mem, allow, else dont....etc.), but how can I go about restricting access at a login? Someone tried to help me a bit and give me this code...

Code:
if ($db_script =~ /vw$/}{
# check member access here
}else{ # do everthing as normal}

but that just confuses me....I dont understand the if db_script line, not sure what that is for...and then Im not sure how to go about checking member access....as in the code to check (if per_mem, allow login, else go to login failure) for example. Can anyone help me with this? Thanks!