mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-23 23:31:33 +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 {
|
||||
idc.Redirect("/signIn?uri="+url.QueryEscape(idc.Ctx.Input.URI()), http.StatusFound)
|
||||
} else if len(roleList) > 0 {
|
||||
idc.Redirect("/registry/project", http.StatusFound)
|
||||
}
|
||||
|
||||
if len(roleList) > 0 {
|
||||
idc.Data["RoleId"] = roleList[0].RoleId
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user