View Source
Class UmbracoUserExtensions
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class UmbracoUserExtensions
Methods
View Source
GetPermissions(IUser, String, IUserService)
Declaration
public static IEnumerable<string> GetPermissions(this IUser user, string path, IUserService userService)
Parameters
Returns
Type |
Description |
IEnumerable<System.String> |
|
View Source
GetUserCulture(String, ILocalizedTextService, GlobalSettings)
Declaration
public static CultureInfo GetUserCulture(string userLanguage, ILocalizedTextService textService, GlobalSettings globalSettings)
Parameters
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
View Source
GetUserCulture(IUser, ILocalizedTextService, GlobalSettings)
Returns the culture info associated with this user, based on the language they're assigned to in the back office
Declaration
public static CultureInfo GetUserCulture(this IUser user, ILocalizedTextService textService, GlobalSettings globalSettings)
Parameters
Returns
Type |
Description |
System.Globalization.CultureInfo |
|
View Source
HasSectionAccess(IUser, String)
Declaration
public static bool HasSectionAccess(this IUser user, string app)
Parameters
Type |
Name |
Description |
IUser |
user |
|
System.String |
app |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsAdmin(IUser)
Determines whether this user belongs to the administrators group.
Declaration
public static bool IsAdmin(this IUser user)
Parameters
Type |
Name |
Description |
IUser |
user |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsSuper(IUser)
Determines whether this user is the 'super' user.
Declaration
public static bool IsSuper(this IUser user)
Parameters
Type |
Name |
Description |
IUser |
user |
|
Returns
Type |
Description |
System.Boolean |
|