i have multiple databases with the same users and would like to use same authorization file so they don't have to login to each database separately. i have the login issue working fine. i also am using the MOD for a special new permission level and the mass email MOD. now i want to set permission levels in the cfg files for each database for certain functions. for example, in one database i want users to be able to use mass email if they can view the record but in another database in only want the admin or special level to be able to use mass email.
in db.cgi the following lines are currently coded to only allow admin to send mass mail.
elsif ($in{'mass_mail_form'}) { if ($per_admin) { &html_mass_mail_form; } else { &html_unauth; } }
elsif ($in{'mass_mail'}) { if ($per_admin) { &mass_mail; } else { &html_unauth; } }
i want to change $per_admin to a variable in the cfg file. maybe one cfg would have $mass_mail_per = admin while the other would have $mass_mail_per = view. how would i get db.cgi to read and apply that setting depending on which database it is? i hope i've explained my situation!
in db.cgi the following lines are currently coded to only allow admin to send mass mail.
Code:
elsif ($in{'mass_mail_form'}) { if ($per_admin) { &html_mass_mail_form; } else { &html_unauth; } }
elsif ($in{'mass_mail'}) { if ($per_admin) { &mass_mail; } else { &html_unauth; } }
i want to change $per_admin to a variable in the cfg file. maybe one cfg would have $mass_mail_per = admin while the other would have $mass_mail_per = view. how would i get db.cgi to read and apply that setting depending on which database it is? i hope i've explained my situation!