Permissions & Authorization for Users #24

Initial Release; Includes Database and MVC refactoring
This commit is contained in:
Gary Sharp
2013-10-10 19:13:16 +11:00
parent 172ce5524a
commit a099d68915
458 changed files with 40221 additions and 12130 deletions
-24
View File
@@ -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";
}
}
}