OnChangeRights - cWebMenuButton

Called whenever user rights are changed in the standard session manager object (cWebSessionManagerStandard)

Type: Event

Parameters: None

Syntax
Procedure OnChangeRights 

Description

If your web application's session manager object is based on the cWebSessionManagerStandard class, then OnChangeRights is triggered each time a new user logs into your web application or each time the web application is loaded (even if user login is not required). OnChangeRights is fired on page load as well.

Augment this event to perform any action required to reflect the new user's rights level. For example, you may wish to hide certain menu options.

Note: The web framework does not fire OnChangeRights to menu bars declared inside a view (since the view might not be in scope when the notification is sent).