View Source
Class UserExtensions
Assembly: Umbraco.Core.dll
Syntax
public static class UserExtensions
Methods
View Source
CalculateAllowedLanguageIds(IUser, ILocalizationService)
Calculate start nodes, combining groups' and user's, and excluding what's in the bin
Declaration
public static int[] CalculateAllowedLanguageIds(this IUser user, ILocalizationService localizationService)
Parameters
Returns
View Source
CalculateContentStartNodeIds(IUser, IEntityService, AppCaches)
Declaration
public static int[]? CalculateContentStartNodeIds(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
View Source
Calculate start nodes, combining groups' and user's, and excluding what's in the bin
Declaration
public static int[]? CalculateMediaStartNodeIds(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
View Source
GetContentStartNodePaths(IUser, IEntityService, AppCaches)
Declaration
public static string[]? GetContentStartNodePaths(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
| Type |
Description |
| string[] |
|
View Source
Declaration
public static string[]? GetMediaStartNodePaths(this IUser user, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
| Type |
Description |
| string[] |
|
View Source
Tries to lookup the user's Gravatar to see if the endpoint can be reached, if so it returns the valid URL
Declaration
public static string[] GetUserAvatarUrls(this IUser user, IAppCache cache, MediaFileManager mediaFileManager, IImageUrlGenerator imageUrlGenerator)
Parameters
Returns
| Type |
Description |
| string[] |
A list of 5 different sized avatar URLs
|
View Source
HasAccessToSensitiveData(IUser)
Determines whether this user has access to view sensitive data
Declaration
public static bool HasAccessToSensitiveData(this IUser user)
Parameters
| Type |
Name |
Description |
| IUser |
user |
|
Returns
View Source
HasContentPathAccess(IUser, IUmbracoEntity, IEntityService, AppCaches)
Declaration
public static bool HasContentPathAccess(this IUser user, IUmbracoEntity entity, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
View Source
Declaration
public static bool HasMediaPathAccess(this IUser user, IUmbracoEntity entity, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
View Source
HasPathAccess(IUser, IContent, IEntityService, AppCaches)
Declaration
public static bool HasPathAccess(this IUser user, IContent content, IEntityService entityService, AppCaches appCaches)
Parameters
Returns
View Source
Declaration
public static bool HasPathAccess(this IUser user, IMedia? media, IEntityService entityService, AppCaches appCaches)
Parameters
Returns