Click or drag to resize

IViewManagerShowCheckPermissionsPopup Method

Shows permissions check dialog.

Namespace: Resto.Front.Api.UI
Assembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntax
C#
IUser ShowCheckPermissionsPopup(
	string[] permissionCodes,
	bool showConfirmPopupAnyway,
	PermissionsCheckMode checkMode,
	string cancelBtnText = null
)

Parameters

permissionCodes  String
Permission codes for check.
showConfirmPopupAnyway  Boolean
If true, shows a popup anyway, otherwise shows a popup only if the user doesn't have permissions.
checkMode  PermissionsCheckMode
All permissions or at least one permission is required.
cancelBtnText  String  (Optional)
Cancel button text.

Return Value

IUser
Returns the user that verified permissions or null if permissions is not verified.
Exceptions
ExceptionCondition
ArgumentExceptionPermissions not found.
See Also