fix bug with raising of role priorities

This commit is contained in:
Michael 2017-03-26 11:58:21 -04:00
parent cd9437be6d
commit 4d4a59bc15

View file

@ -275,6 +275,7 @@ Unlike previous ShiftOS site revamps, your account got migrated over. However, t
higherUp = r as Role; higherUp = r as Role;
} }
if(higherUp != null)
higherUp.Priority--; higherUp.Priority--;
role.Priority++; role.Priority++;
db.SaveChanges(); db.SaveChanges();