dev: hotfix, added system role
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user