Port 7.7 - WIP
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Umbraco.Web.Models.ContentEditing
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents information for the current user
|
||||
/// </summary>
|
||||
[DataContract(Name = "user", Namespace = "")]
|
||||
public class UserDetail : UserBasic
|
||||
public class UserDetail : UserProfile
|
||||
{
|
||||
[DataMember(Name = "email", IsRequired = true)]
|
||||
[Required]
|
||||
@@ -21,21 +26,35 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "emailHash")]
|
||||
public string EmailHash { get; set; }
|
||||
|
||||
[DataMember(Name = "userType", IsRequired = true)]
|
||||
[Required]
|
||||
public string UserType { get; set; }
|
||||
[Obsolete("This should not be used it exists for legacy reasons only, use user groups instead, it will be removed in future versions")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[ReadOnly(true)]
|
||||
[DataMember(Name = "userType")]
|
||||
public string UserType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets/sets the number of seconds for the user's auth ticket to expire
|
||||
/// </summary>
|
||||
[DataMember(Name = "remainingAuthSeconds")]
|
||||
public double SecondsUntilTimeout { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The user's calculated start nodes based on the start nodes they have assigned directly to them and via the groups they're assigned to
|
||||
/// </summary>
|
||||
[DataMember(Name = "startContentIds")]
|
||||
public int[] StartContentIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The user's calculated start nodes based on the start nodes they have assigned directly to them and via the groups they're assigned to
|
||||
/// </summary>
|
||||
[DataMember(Name = "startMediaIds")]
|
||||
public int[] StartMediaIds { get; set; }
|
||||
|
||||
[DataMember(Name = "startContentId")]
|
||||
public int StartContentId { get; set; }
|
||||
|
||||
[DataMember(Name = "startMediaId")]
|
||||
public int StartMediaId { get; set; }
|
||||
/// <summary>
|
||||
/// Returns a list of different size avatars
|
||||
/// </summary>
|
||||
[DataMember(Name = "avatars")]
|
||||
public string[] Avatars { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A list of sections the user is allowed to view.
|
||||
|
||||
Reference in New Issue
Block a user