Permissions & Authorization for Users #24
Initial Release; Includes Database and MVC refactoring
This commit is contained in:
@@ -19,8 +19,6 @@ namespace Disco.Models.Repository
|
||||
[StringLength(200)]
|
||||
public string GivenName { get; set; }
|
||||
|
||||
[StringLength(8)]
|
||||
public string Type { get; set; }
|
||||
[StringLength(100)]
|
||||
public string PhoneNumber { get; set; }
|
||||
[StringLength(150)]
|
||||
@@ -32,17 +30,6 @@ namespace Disco.Models.Repository
|
||||
[InverseProperty("UserId")]
|
||||
public virtual IList<Job> Jobs { get; set; }
|
||||
|
||||
//#region Helper Members
|
||||
//[NotMapped, XmlIgnore, ScriptIgnore]
|
||||
//public List<DeviceUserAssignment> CurrentDeviceUserAssignments
|
||||
//{
|
||||
// get
|
||||
// {
|
||||
// return this.DeviceUserAssignments.Where(dua => !dua.UnassignedDate.HasValue).ToList();
|
||||
// }
|
||||
//}
|
||||
//#endregion
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0} ({1})", this.DisplayName, this.Id);
|
||||
@@ -63,17 +50,6 @@ namespace Disco.Models.Repository
|
||||
this.EmailAddress = u.EmailAddress;
|
||||
if (this.PhoneNumber != u.PhoneNumber)
|
||||
this.PhoneNumber = u.PhoneNumber;
|
||||
if (this.Type != u.Type)
|
||||
this.Type = u.Type;
|
||||
}
|
||||
|
||||
public static class Types
|
||||
{
|
||||
public const string Admin = "Admin";
|
||||
public const string Computer = "Computer";
|
||||
public const string Staff = "Staff";
|
||||
public const string Student = "Student";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user