CommonDatabaseFunctionsHasFileAccess Method

Determines whether the current user has access to update a specific file entity.

Definition

Namespace: Scanjour.Workflow4.Base
Assembly: Scanjour.Workflow4.Base (in Scanjour.Workflow4.Base.dll) Version: 24.4.0.0 (24.4.0.0)
C#
public static bool HasFileAccess(
	Uri oDataUri,
	string fileKey,
	SecurityContext securityContext = SecurityContext.User
)

Parameters

oDataUri  Uri
Provides access to query the database.
fileKey  String
The key to the file entity.
securityContext  SecurityContext  (Optional)
The security context in which the file shall be accessed.

Return Value

Boolean
True, if the current user can update the file; otherwise false.

See Also