Provides information on the current user and his/her preferences. Beside the standard UserInfo properties, it also provides the following ones:
MenuItemViewMode – the view mode used for page (menu item) documents (cms.menuitem type).
PreferredUICultureInfo – read-only property returning the current user’s preferred UI culture (as CultureInfo object).
PreferredCultureCode – gets/sets user’s preferred content culture. You can use this property to change the culture of the displayed content.
PreferredUICultureCode – gets/sets user’s preferred UI culture. It’s used mainly by Kentico CMS webparts, controls and in the administration interface.
IsAuthorizedPerResource – returns true if the current user is authorized with given permission for given module (resource).
IsAuthorizedPerClassName – returns true if the current user is authorized with given permission for the given document type (class name). It checks the global document permissions.
IsAuthorizedPerTreeNode – returns true if the current user is authorized with given permission for given document (node).
IsPublic – returns true if the current user is the Public user account used for anonymous visitors.
|