Heya JPD,
Hope all is well with you. I would like to build some additional logic around the permissions a user have on my DBman main page.
For instance, if someone has VIEW only permissions I would like to display the following text and links:
First time here:
=> Create a New Account (link 1)
Say a first time visitor clicks on Create a New Account, does so and the script returns her to this page. The links should now be as follows:
First time here:
=> Add your record (link 2)
Now - link 1 is easy to create with
Link 2 by itself is also easy to create with
However,after the person has created an account and logged in the permissions will be VIEW, ADD, MODIFY, DELETE and all I want to show is link 2. How do I code the logic so that Link 1 doesn't show up in the second instance?
I know the logic is something like:
If permission = View ONLY -> show link 1, don't show link 2
If permission = View AND Add - don't show link 1, show link 2
Hmmm...hope you can help.
------------------
Safe swoops
Sangiro
www.dropzone.com/
[This message has been edited by sangiro (edited July 25, 1999).]
Hope all is well with you. I would like to build some additional logic around the permissions a user have on my DBman main page.
For instance, if someone has VIEW only permissions I would like to display the following text and links:
First time here:
=> Create a New Account (link 1)
Say a first time visitor clicks on Create a New Account, does so and the script returns her to this page. The links should now be as follows:
First time here:
=> Add your record (link 2)
Now - link 1 is easy to create with
Code:
print " Create a new account " if ($per_view);Link 2 by itself is also easy to create with
Code:
print " Add your record " if ($per_add);However,after the person has created an account and logged in the permissions will be VIEW, ADD, MODIFY, DELETE and all I want to show is link 2. How do I code the logic so that Link 1 doesn't show up in the second instance?
I know the logic is something like:
If permission = View ONLY -> show link 1, don't show link 2
If permission = View AND Add - don't show link 1, show link 2
Hmmm...hope you can help.
------------------
Safe swoops
Sangiro
www.dropzone.com/
[This message has been edited by sangiro (edited July 25, 1999).]

