FMDuck Posted July 20, 2008 Posted July 20, 2008 I have a login script that includes a Get( PrivilegeSetName ) in an If statement. When I run the script, I can see in the Data Viewer that the desired Privilege Set Name is identified by FM but when the login script runs, the If statement that checks that Privilege Set Name gets skipped. I've changed the Privilege Set Name, changed the Account Name, cut-and-pasted the name from a Boolean test in the Data Viewer, flushed the cache and moved the If statement into a subscript. Nothing helped. I've also copied the If routine to a different script with negative results but if I do change the If statement to check for the "[Full Access]" Privilege Set, and login as such, the If statement works. I've also Recovered the file than ran it through FMDiff. No errors were found and there were no previous recoveries. Has anybody seen anything like this before?
Vaughan Posted July 21, 2008 Posted July 21, 2008 Post your script steps. There is something not right there. When setting a sxript to run with full access privileges, the Get (PrivilegeSetName ) function will *aways* return [Full Access] because that's the privilege set that's running the script. This is usually not what people expect to happen (although it makes sense that it should).
FMDuck Posted July 21, 2008 Author Posted July 21, 2008 Thanks Vaughan, It was the 'Run script with full access privileges'. I never realized that the Data Viewer reported back the 'intended' Privilege Set even through the script setting over-rode it. Thanks again.
Recommended Posts
This topic is 6320 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