Gossamer Forum
Home : Products : DBMan : Installation :

Adding more roles

Quote Reply
Adding more roles
Hello DBManners

I am trying to add an authority type so I can select what to show depending on the type of user you are...

if ($per_NewAuthType) {&html_record_form_ext (%rec)

I have added the new type in the db.cgi file so I can select it when I create the user in the User Management window.

In sub admin_display I basically added the new type everywhere I saw "per_admin"

print PASS "$in{'new_username'}:$encrypted:$in{'per_view'}:$in{'per_add '}:$in{'per_del'}:$in{'per_mod'}:$in{'per_admin'}:$in{'per_N ewAuthType'}\n";

NewAuthType <input type=checkbox name="per_NewAuthType" value="1" |; ($data[7] and $perm .= "CHECKED"); $perm .= qq|>|;

and

NewAuthType <input type=checkbox name="per_NewAuthType" value="1" |; ($auth_default_perm[5] and $perm .= "CHECKED"); $perm .= qq|>|;


Now, when I add a new user I can click on the NewAuthType option. If I do an "Inquire" on the user I see that the NewAuthType option is saved (clicked) but when I use the "per_NewAuthType" condition in the code, it does not seem to work.

Any ideas? Is there maybe an easier way of accomplishing the same?

Thanks

Jaime Ortega
Subject Author Views Date
Thread Adding more roles Jaime Ortega 3372 Nov 25, 1998, 1:15 AM
Post Re: Adding more roles
Alex 3188 Nov 30, 1998, 8:26 AM
Post Re: Adding more roles
Jaime Ortega 3197 Dec 2, 1998, 12:10 AM