Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4136 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

 

For some reason the script below that I have as an on open script for my file is not working in regards to hiding and locking the status toolbar from only those with Full Access. Am I missing something obvious? It does hide it, but the lower privilege user can still go to View > Status Toolbar and open it. I thought "lock" was suppose to prevent this?

 

 

#

#

If [ Get ( CurrentPrivilegeSetName ) = "[Full Access]" ]

Perform Script [ “Unlock_forDevelopment” ]

Else

#

# restrict other users from seeing the toolbar

Allow Formatting Bar [ Off ]

Show/Hide Toolbars

[ Lock; Hide ]

End If

#

# Set default layout

Perform Script [ “__Default_Layout” ]

#

# Set initial window position

Perform Script [ “__Default_Window” ]

#

# Restore Globals as default settings

Perform Script [ “__Restore_Globals” ]

Posted

I think it might help to see the sub scripts. The first part of your script seems to do what you want but I would carefully examine the scripts that are called in the latter part.

Posted

Get ( CurrentPrivilegeSetName ) evaluates to the privilege set running the script which might be set to full access (using the checkbox at the bottom).

 

I believe you want Get ( AccountPrivilegeSetName ) which checks for the USER'S privilege set.

 

If this isn't the issue then it is unusual since once the toolbar is hidden and locked, it should stay that way not matter which layout you go to.  I tested and just confirmed it works as expected on 10.8.4 with 12.0v4 but it might act differently on other versions.

Posted

Thanks LaRetta,

 

I did what you suggested and it still didn't work, but your mentioning the "running the script which might be set to full access" made me check that. I did have it checked on some of the subscripts, and once I deselected that it works correctly now.

This topic is 4136 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.