View Source
Checks user access to media
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public class MediaPermissions
Constructors
View Source
Declaration
public MediaPermissions(IMediaService mediaService, IEntityService entityService, AppCaches appCaches)
Parameters
Methods
View Source
Declaration
public MediaPermissions.MediaAccess CheckPermissions(IMedia media, IUser user)
Parameters
Returns
View Source
Performs a permissions check for the user to check if it has access to the node based on
start node and/or permissions for the node
Declaration
public MediaPermissions.MediaAccess CheckPermissions(IUser user, int nodeId, out IMedia media)
Parameters
Type |
Name |
Description |
IUser |
user |
|
System.Int32 |
nodeId |
The content to lookup, if the contentItem is not specified
|
IMedia |
media |
|
Returns