Gossamer Forum
Home : Products : DBMan : Customization :

Problem with guest login

Quote Reply
Problem with guest login
Hi!

I have noticed that if u login as guest/guest you can see the admin button but if you click on it it say unauthorized...If on the home screen you click another button (ex: View all) after it doesn't show admin anymore.
Any idea?
Quote Reply
Re: [atomant] Problem with guest login In reply to
How is your link setup in your What does your sub html_footer?

Does it look like this:

print qq!|| <A HREF="$db_script_link_url&admin_display=1">Admin</A> ! if ($per_admin);

If so, it should not display for anyone logged in except for admin.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/
Quote Reply
Re: [LoisC] Problem with guest login In reply to
This is my sub html_footer:
Code:
sub html_footer {
# --------------------------------------------------------
# Print the menu.
#
# We only print options that the user have permissions for.
#

print qq!<P align=center><$font>!;
print qq!| <A HREF="$db_script_link_url">Home / Racine</A> !;
print qq!| <A HREF="$db_script_link_url&add_form=1">Add / Ajout</A> ! if ($per_add);
print qq!| <A HREF="$db_script_link_url&view_search=1">View / Visu.</A> ! if ($per_view);
if (!$per_admin && $auth_modify_own) {
print qq!| <A HREF="$db_script_link_url&delete_form=1&$db_key=*">Delete / Suppr.</A> ! if ($per_del);
print qq!| <A HREF="$db_script_link_url&modify_form=1&$db_key=*">Modify / Modif.</A> ! if ($per_mod);
}
else {
print qq!| <A HREF="$db_script_link_url&delete_search=1">Delete / Suppr.</A> ! if ($per_del);
print qq!| <A HREF="$db_script_link_url&modify_search=1">Modify / Modif.</A> ! if ($per_mod);
}
print qq!| <A HREF="$db_script_link_url&view_records=1&$db_key=*">List All / Tout voir</A> ! if ($per_view);
print qq!| <A HREF="$db_script_link_url&admin_display=1">Admin</A> ! if ($per_admin);
print qq!| <A HREF="$db_script_link_url&logoff=1">Log Off / Quitter</A> <br> !;
print qq! <center><A HREF="$db_script_link_url&whos_online=1">Who's Online / Qui est connecté</A> <br><br> ! if ($per_view);
}
As you can see everything is all right. Test it yourself:
https://konik.homelinux.net/db.cgi
Quote Reply
Re: [atomant] Problem with guest login In reply to
Yes, that looks correct. The next thing to check is through the ADMIN feature check look at the permissions set for guest and be sure they haven't been assigned the admin permission.

Also check your permission in your .cfg file and be sure that you haven't mistakenly given logged in users the admin permission rights.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/
Quote Reply
Re: [LoisC] Problem with guest login In reply to
I have allready fixed it. I have just deleted and recreated guest account and now there is no problem.Cool

Strange.