Fix production scada

Fix delete alarm attachment
Fix reload page after login
Added delete alarm-history
This commit is contained in:
Lucio Maranta
2019-06-29 16:10:42 +02:00
parent b096632d22
commit 7b7399182a
21 changed files with 118 additions and 63 deletions
+4 -2
View File
@@ -238,10 +238,12 @@ namespace Step.Database.Controllers
return GetUserInfo(userId);
}
public Boolean isCMSRole(int roleId)
public bool isCMSRole(int roleId)
{
var tmpRole = dbCtx.Roles
.ToList()
.First(X => X.RoleId == roleId);
var tmpRole = dbCtx.Roles.ToList().First(X => X.RoleId == roleId);
if (tmpRole == null)
return true;
else