WIP maintenances with password

Fix Siemens library
This commit is contained in:
Lucio Maranta
2019-03-04 17:23:13 +01:00
parent 28b6932ee2
commit 321f6bd9e0
7 changed files with 92 additions and 22 deletions
@@ -70,7 +70,7 @@ namespace Step.Database.Controllers
.Where(x => x.MachineId == machineId && x.UserId == userId) // Find by machine id and user id, joining with role
.FirstOrDefault();
if(machineUser != null)
if (machineUser != null)
{
RoleModel role = machineUser.Role;
return new DTORoleModel()
@@ -83,7 +83,6 @@ namespace Step.Database.Controllers
return null;
}
public bool UserIsCmsAdmin(int machineId, int userId)
{
MachineUserModel user = FindByUserId(machineId, userId);
@@ -93,7 +92,6 @@ namespace Step.Database.Controllers
return false;
}
public int CompareUsersRole(int firstUserId, int secondUserId, int machineId)
{
MachineUserModel firstUser = FindByUserId(machineId, firstUserId);