UserExtensions Class
Namespace: Nucleus.Extensions
Assembly: Nucleus.Extensions.dll
Extensions for the User class.
Methods
IsSystemAdministrator
(User) Method
IsSystemAdministrator (User user)
Retrieve a true/false value indicating whether the user is a system administrator.
IsSiteAdmin
(User,Site) Method
IsSiteAdmin (User user, Site site)
Retrieve a true/false value indicating whether the user s a site administrator or system administrator.
GetCensored
(User) Method
GetCensored (User user)
Return a copy of the supplied user with sensitive data (role memberships, and most secrets) removed.