/// <summary> /// Constructor for the role manager. Create this everytime a user changes. /// </summary> /// <param name="user">The user to get the permissions for</param> public RoleManager(IWorkoutDAO db) { if (_roles.Count == 0) { var roles = db.GetRoleItems(); foreach (var role in roles) { _roles.Add(role.Id, role); } } }