Mohammed Nafees преди 4 години
родител
ревизия
5237b9d570
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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,
 				},
 				},