mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-31 23:59:32 +01:00
Merge pull request #14744 from wy65701436/release-1.10.0-fix-tk
fix registry token issue
This commit is contained in:
commit
279c8d3565
@ -204,6 +204,9 @@ func resourceScopes(sCtx security.Context, rc rbac.Resource) map[string]struct{}
|
|||||||
if ok1 && ok2 && ok3 {
|
if ok1 && ok2 && ok3 {
|
||||||
res["*"] = struct{}{}
|
res["*"] = struct{}{}
|
||||||
}
|
}
|
||||||
|
if ok1 && !ok2 {
|
||||||
|
res["pull"] = struct{}{}
|
||||||
|
}
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user