CobyUSA Posted August 3, 2008 Posted August 3, 2008 When someone out side the priviledge set tries to click on a button, how do you get a button to show a message that says you do not have access to this file?
bcooney Posted August 3, 2008 Posted August 3, 2008 If they are viewing a button on a layout of the file, then they have access. However, the usual way to script priv set limits (in sync with access priv calcs, perhaps) is something like: If [Get (PrivilegeSetName) <> "Admin"] Show Dialog (You must be logged in as Admin to access this feature.") Else do admin script/stuff End If
CobyUSA Posted August 3, 2008 Author Posted August 3, 2008 Thank you! I will try it. The buttons are on a "Gateway" to the files so they are not in yet.
CobyUSA Posted August 3, 2008 Author Posted August 3, 2008 If there are others besides Admin that have access will the script look like: If [Get (PrivilegeSetName) <> "Admin" ; "Principal" ; "Teacher"] Show Dialog (You must be logged in as Admin to access this feature.") Else do admin script/stuff End If
CobyUSA Posted August 3, 2008 Author Posted August 3, 2008 do admin script/stuff What is this??? Do I type this in the script too?
aldipalo Posted August 3, 2008 Posted August 3, 2008 No, whatever Else you want the script to do. You can just as easily end the script If [Get (PrivilegeSetName) <> "Admin" ; "Principal" ; "Teacher"] Show Dialog (You must be logged in as Admin to access this feature.") Exit Script End If
bcooney Posted August 3, 2008 Posted August 3, 2008 I don't know what you mean by a "Gateway." If they should not have access to a file, then don't give them an account to the file. I'm sorry about posting pseudo-script language, I didn't mean to confuse you and my example assumes that you have defined a priv set "Admin." If you have multiple priv sets that don't have access, it might be easier to script it like so: If [ Get (PrivilegeSetName) = "Admin"] ..steps to continue the routine Else Show Dialog (You must be logged in as Admin to access this feature.") EndIf
CobyUSA Posted August 4, 2008 Author Posted August 4, 2008 All users login at their level to Gateway which is a file with just buttons. Each button has limited access based on the users' priviledges that they used to login to the Gateway. The user's Gateway login priviledge level is = to the buttons. All users see all butttons but their login to Gateway restricts which buttons will work for them. I want the buttons that will not work for the user to have a message instead of the script that is running asking them to login to the button. They will get a login request everytime they click a button that they don't have access to...I would like a message saying restricted. The login prompt is misleading.
Lee Smith Posted August 4, 2008 Posted August 4, 2008 Is this "Gateway" file one that you made, or is it a commercial product? Lee
CobyUSA Posted August 4, 2008 Author Posted August 4, 2008 I made it so, the users don't have to select from a long list of files on a remote server.
Recommended Posts
This topic is 5953 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now