Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Security permissions

Status
Not open for further replies.

Niv3k

Programmer
Jul 11, 2001
350
US
Is there a way I can check a user's security permission while they are loading a page, to know whether or not to a a javascript function to the page? Let me clarify:

I have two users: Bob and Tim. Bob is allowed to update information. When Bob clicks on a
Code:
<TD>
he will be able to go to a page where he can update the information.

Tim is allowed to view information only. I do not want Tim to ever be able to click on a hyperlink and get an authentication / scary ugly page (OH, NO! What did I break!?!?) error.

Permissions can come from the SQL Server itself, or NTFS. But I don't want to write 2 seperate pages. I am using NT integrated security, Anonomous access is disabled.
 
how about something like;

<%
if permissions = &quot;OK&quot; then
response.write link for people who have permission
else
response.write something else
end if
%> Steve Davis
hey.you@hahaha.com.au
 
Please expand on that: Is &quot;permissions&quot; a global variable, or is it one I have to define?

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top