dev: hotfix, added system role

This commit is contained in:
2025-10-25 18:01:37 +07:00
parent abb314e950
commit b5b0a8183d
@@ -200,6 +200,8 @@ func GenToken(input eu.LoginDto) (*d.Data, error) {
intern := intern.Intern{}
dg.I.Where("\"User_Id\" = ?", user.Id).First(&intern)
role = append(role, "int-"+string(*intern.Position_Code))
case erg.CSCSys:
role = append(role, "system")
}
atClaims["roles"] = role
outputData["roles"] = role