Explorar o código

add UserScope

Mohammed Nafees %!s(int64=4) %!d(string=hai) anos
pai
achega
5237b9d570
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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",
 				},
 				Scopes: []types.PermissionScope{
+					types.UserScope,
 					types.ProjectScope,
 					types.ClusterScope,
 				},
@@ -414,6 +415,7 @@ func getClusterRoutes(
 					RelativePath: relPath + "/deployments/pull_request",
 				},
 				Scopes: []types.PermissionScope{
+					types.UserScope,
 					types.ProjectScope,
 					types.ClusterScope,
 				},
@@ -443,6 +445,7 @@ func getClusterRoutes(
 					RelativePath: relPath + "/deployments/{deployment_id}",
 				},
 				Scopes: []types.PermissionScope{
+					types.UserScope,
 					types.ProjectScope,
 					types.ClusterScope,
 				},