Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hide & Lock Status Toolbar not working

Featured Replies

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” ]

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.

  • Author

What would I be looking for in particular?

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.

  • Author

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.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.