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