Click or drag to resize

IViewManager.ShowCheckPermissionPopup Method

Shows permission check dialog.

Namespace:  Resto.Front.Api.UI
Assembly:  Resto.Front.Api.V8 (in Resto.Front.Api.V8.dll)
Syntax
C#
IUser ShowCheckPermissionPopup(
	string permissionCode,
	bool showConfirmPopupAnyway,
	string cancelBtnText = null
)

Parameters

permissionCode
Type: System.String
Permission code for check.
showConfirmPopupAnyway
Type: System.Boolean
If true, shows a popup anyway, otherwise shows a popup only if the user doesn't have permission.
cancelBtnText (Optional)
Type: System.String
Cancel button text.

Return Value

Type: IUser
Returns the user that verified the permission or null if permission is not verified.
Exceptions
ExceptionCondition
ArgumentExceptionPermission not found.
See Also