Kaynağa Gözat

add UserScope

Mohammed Nafees 4 yıl önce
ebeveyn
işleme
5237b9d570
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      api/server/router/cluster.go

+ 3 - 0
api/server/router/cluster.go

@@ -386,6 +386,7 @@ func getClusterRoutes(
 					RelativePath: relPath + "/deployments/{deployment_id}/reenable",
 					RelativePath: relPath + "/deployments/{deployment_id}/reenable",
 				},
 				},
 				Scopes: []types.PermissionScope{
 				Scopes: []types.PermissionScope{
+					types.UserScope,
 					types.ProjectScope,
 					types.ProjectScope,
 					types.ClusterScope,
 					types.ClusterScope,
 				},
 				},
@@ -414,6 +415,7 @@ func getClusterRoutes(
 					RelativePath: relPath + "/deployments/pull_request",
 					RelativePath: relPath + "/deployments/pull_request",
 				},
 				},
 				Scopes: []types.PermissionScope{
 				Scopes: []types.PermissionScope{
+					types.UserScope,
 					types.ProjectScope,
 					types.ProjectScope,
 					types.ClusterScope,
 					types.ClusterScope,
 				},
 				},
@@ -443,6 +445,7 @@ func getClusterRoutes(
 					RelativePath: relPath + "/deployments/{deployment_id}",
 					RelativePath: relPath + "/deployments/{deployment_id}",
 				},
 				},
 				Scopes: []types.PermissionScope{
 				Scopes: []types.PermissionScope{
+					types.UserScope,
 					types.ProjectScope,
 					types.ProjectScope,
 					types.ClusterScope,
 					types.ClusterScope,
 				},
 				},