Gossamer Forum
Home : Products : DBMan : Customization :

About Add Permission Mod

Quote Reply
About Add Permission Mod
Hi! I just installed Add Permission mod and it works beautifully. I just realised that in the auth.pl where we were suppose to do some corrections, the instructions did not say whether we need to modify this line in the subroutine auth_check_permissions:

"else{
($userid = ~ /^([A-Za-z0-9]+)\.\d+$/}? (0,0,0,0,0);
}"

Shouldn't the line be modified to:

"else{
($userid = ~ /^([A-Za-z0-9]+)\.\d+$/}? (0,0,0,0,0,0);
}

Maybe I missed out the instructions. Will this have any impact on the database itself?

Julian
Quote Reply
Re: About Add Permission Mod In reply to
Actually, the code is

Code:

else {
($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);
}
You can add it if you want. Returning a 0 is the same thing as returning nothing.

You might also want to add a 0 to

return (0,0,0,0,0); # Can't find this user?



JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: About Add Permission Mod In reply to
Thanks.


Julian