mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-26 17:51:13 +08:00
fix: issue where wrong namespace was obtained from certain urls for workspaces/models
This commit is contained in:
@@ -275,7 +275,7 @@ func UnaryInterceptor(kubeConfig *v1.Config, db *v1.DB, sysConfig v1.SystemConfi
|
|||||||
pieces := strings.Split(workspaceAndNamespace, "--")
|
pieces := strings.Split(workspaceAndNamespace, "--")
|
||||||
if len(pieces) > 1 {
|
if len(pieces) > 1 {
|
||||||
workspaceName := pieces[0]
|
workspaceName := pieces[0]
|
||||||
namespace := pieces[1]
|
namespace := pieces[len(pieces)-1]
|
||||||
|
|
||||||
isAuthorizedRequest, ok := req.(*api.IsAuthorizedRequest)
|
isAuthorizedRequest, ok := req.(*api.IsAuthorizedRequest)
|
||||||
if ok {
|
if ok {
|
||||||
|
Reference in New Issue
Block a user