HasTabPermission checks whether the current user has a specific Tab Permission

Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static bool HasTabPermission(
	string permissionKey
)
Visual Basic
Public Shared Function HasTabPermission ( 
	permissionKey As String
) As Boolean

Parameters

permissionKey
Type: System..::..String
The Permission to check

Return Value

returnsM:DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission(System.String)

Remarks

If you pass in a comma delimited list of permissions (eg "ADD,DELETE", this will return true if the user has any one of the permissions.

See Also