add for allow header for dowload file on client Content-Disposition
This commit is contained in:
@@ -64,7 +64,9 @@ namespace CarParkValidationAPI.Repository
|
||||
myUser.LastName = loginInfo.LastName;
|
||||
myUser.Username = loginInfo.StafflinkNo;
|
||||
//now check the adminuser table
|
||||
var user = _context.AdminUsers.SingleOrDefault(x => x.StafflinkNo == model.Username);
|
||||
var user = _context.AdminUsers.
|
||||
SingleOrDefault(x => x.StafflinkNo == model.Username
|
||||
&& x.Active == true);
|
||||
if (user != null)
|
||||
{
|
||||
myUser.Role = user.RoleType;
|
||||
|
||||
Reference in New Issue
Block a user