Fix production scada
Fix delete alarm attachment Fix reload page after login Added delete alarm-history
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user