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
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