Click or drag to resize
MediaLibraryInfoProviderIsUserAuthorizedPerLibraryInternal Method
Returns True if current user is granted with specified media library permission, otherwise returns False.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax
C#
protected virtual bool IsUserAuthorizedPerLibraryInternal(
	MediaLibraryInfo libraryInfo,
	string permission,
	CurrentUserInfo userInfo
)

Parameters

libraryInfo
Type: CMS.MediaLibraryMediaLibraryInfo
Media library data
permission
Type: SystemString
Permission code name
userInfo
Type: CMS.MembershipCurrentUserInfo
User to check

Return Value

Type: Boolean
See Also