mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-24 07:41:40 +01:00
refined redirection when user logined.
This commit is contained in:
parent
386de12444
commit
bfd96c9373
@ -67,8 +67,10 @@ func (idc *ItemDetailController) Get() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if project.Public == 0 && len(roleList) == 0 {
|
if project.Public == 0 && len(roleList) == 0 {
|
||||||
idc.Redirect("/signIn?uri="+url.QueryEscape(idc.Ctx.Input.URI()), http.StatusFound)
|
idc.Redirect("/registry/project", http.StatusFound)
|
||||||
} else if len(roleList) > 0 {
|
}
|
||||||
|
|
||||||
|
if len(roleList) > 0 {
|
||||||
idc.Data["RoleId"] = roleList[0].RoleId
|
idc.Data["RoleId"] = roleList[0].RoleId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user