MediaLibraryInfoProviderIsUserAuthorizedPerLibrary Method |
Returns True if current user is granted with specified media library permission, otherwise returns False.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 13.0.131
Syntax public static bool IsUserAuthorizedPerLibrary(
MediaLibraryInfo libraryInfo,
string permission,
CurrentUserInfo userInfo = null
)
Parameters
- libraryInfo
- Type: CMS.MediaLibraryMediaLibraryInfo
Media library data - permission
- Type: SystemString
Permission code name - userInfo (Optional)
- Type: CMS.MembershipCurrentUserInfo
User to check
Return Value
Type:
BooleanSee Also