This topic is locked

Security settings

2/14/2007 6:46:48 AM
ASPRunnerPro General questions
G
grinningdog author

I've got a security setting that restricts one user to two specific lookup tables. If she click on the wrong one it comes up with the message:

"You don't have permissions to access this table Back to login page"
but I'd prefer the link to be back to the menu.
I've tried searching for a text string in my output files but couldn't find anything
Can I do this?
Bob

Asprunner 4.1 Build 223

Sergey Kornilov admin 2/15/2007

The following piece of code in liast.asp is responsible for displaying message:

if not CheckSecurity(SESSION("OwnerID"),"Search") and not CheckSecurity(SESSION("OwnerID"),"Add") then

response.Write "<p>" & ##message NO_PERMISSIONS## & " <a href=""login.asp"">" & ##message BACK_TO_LOGIN## & "</a></p>"

response.End

end if


Modify it to point to menu page.

G
grinningdog author 2/15/2007

Hmmm... well I haven't got a file called that and several searches for text, like "CheckSecurity" for example, show no results. Am I looking in the right place?
Bob

G
grinningdog author 2/16/2007

OK, looks like I've got it. It's in each TableName_list.asp file so I need to edit every one. No problem but presumably I'll need to do that near the end of my project because it'll change back whenever I rebuild won't it?
I have a similar problem with my date range and commonfunctions.asp.