SoftadminApi.User_HasAccessToMenuItem

 Show all Hide all

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

Type: Scalar function
Area of use: General use

Return value: smallint

Returns -1 if the user, his role or function has been explicitly denied access to the menu item.

Returns 1 if the user, his role or function has been explicitly 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.
@MenuitemID mandatory int
The id of the menu item to query.