|
-
Sep 6th, 2004, 05:16 PM
#1
Thread Starter
Fanatic Member
ASP 3.0, quick access level check
When you sign up on a forum, you are signed up as a member.
You cannot do the same things moderators can. This is what I am trying to do on my website as well. Users that create an account can do everything users can, but not things a moderator can.
So, here is what I am doing
Code:
objUser = GetUserFunction(); // this returns everything about the user... this part works great
intAccess = objUser.intAccessLevel;
So, after I have intAccess when I create buttons on the page i simply check for intAccess like so
Admin = 0
Developer = 1
Member = 2
Code:
if(intAccess == 0)
{
//Create an edit button here with the link to the edit page.
//(the edit page would have a seperate security check to make
//sure the right user is using it.
}
Is this the standard way of doing it?
ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|