close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

User Level Access

Thread began 9/19/2013 9:51 pm by teresa328019 | Last modified 2/17/2014 10:17 am by sysop349733 | 3367 views | 8 replies |

teresa328019

User Level Access

I am trying to create user access pages based on the employee's title ranking. 1,2 or 3.
I followed the thread here: www.webassist.com/forums/posts.php?id=25732 but I can't seem to get it to work. I seems that no matter what I have in my database as the UserTitle, access is allowed no matter what.

I'd also like to add the functionality that allows ranking 3 to view all levels, and ranking 2 can view both 1 and 2.

Sign in to reply to this post

Jason ByrnesWebAssist

send the webassist/security_assist/helpergrouprules.php page so I can see how the access rules are defined.

Sign in to reply to this post

teresa328019

See attached

Sign in to reply to this post

Jason ByrnesWebAssist

I dont see any rules that you have created for user level authentication.

There is an old tutorial for USer level authentication here:
http://assets.webassist.com/solutionrecipes/securityassist_user_level_auth_sr.pdf

is was created for security assist 1, but the concept is the same.

Sign in to reply to this post

teresa328019

That tutorial was perfect. Thank you.
Now I have login.php directing to the employees.php page on my site correctly. From there I can have access to other levels on the site.

My only problem:
On the employee.php page, there are 3 links to access pages depending on your userLevel. I am trying to add text that says "Access Denied for ..." when the user clicks on a link to a restricted page. The text is appearing on the page before I've even tried to click the link. How do I add this?

Sign in to reply to this post

Jason ByrnesWebAssist

Use the security assist show region behavior to hide the links they don't have access too.

Sign in to reply to this post

sysop349733

How'd you do it?

Hi,

Can you explain what you got to these instructions?:

6. Choose the userLevel database column.
7. By default the name of the session variable
8. Select Finish

What did you choose as the value after selecting the userLevel database column? What did you take #7 to mean?

Thanks, if you can help.

Sign in to reply to this post

Jason ByrnesWebAssist

In these steps, you are selecting the sessions to be stored and the names to use for the session variable.

by default, the session variable name will use the same name as the user level column, if you wish, you can change the session name to something else.


a newer version of this tutorial is now available here:
http://www.webassist.com/tutorials/User-level-authentication-with-SecurityAssist

Sign in to reply to this post

sysop349733

That newer tutorial is helpful. I had misunderstood the old one to be instructing me to add UserLevel as a database comparison before adding it as a session variable, which is incorrect and probably accounts for the problems I encountered. Let me try it again correctly and I'll let you know if that resolves the problems.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...