add for allow header for dowload file on client Content-Disposition

This commit is contained in:
Kham
2021-08-23 17:08:27 +10:00
parent d90e73dfcc
commit 4792acea76
6 changed files with 123 additions and 7 deletions
@@ -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;