Click or drag to resize

SecurityProviderUtilityIsResourceAccessible Method

Determines if the current user, as defined by the principal, has permission to access the specified resource based on settings in the config file.

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.181-beta
Syntax
public static bool IsResourceAccessible(
	string resource,
	IPrincipal principal
)
View Source

Parameters

resource  String
Name of the resource to be checked.
principal  IPrincipal
The principal providing the security context for the user.

Return Value

Boolean
true if the current user has permission to access the resource; otherwise false.
See Also