SoftadminApi.User_HasAccessToMenuItem

Type: Scalar function

Determines if a user has access to a specified menu item.

Return value: smallint

Returns 1 if the user has been granted access to the menu item.

In all other cases the return value will be 0, which means the user has been neither granted nor denied access to the menu item. In Softadmin® this means the user will not be able to access the menu item.

Parameters

@UserID mandatory int
The id of the user to query.
@MenuItemIdOrAlias mandatory varchar(200)
The id or alias of the menu item to query.