Explorar o código

add user scope

Mohammed Nafees %!s(int64=3) %!d(string=hai) anos
pai
achega
6c735f9575
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      api/server/router/project.go

+ 2 - 1
api/server/router/project.go

@@ -396,8 +396,9 @@ func getProjectRoutes(
 				RelativePath: relPath + "/collaborators/{user_id}",
 			},
 			Scopes: []types.PermissionScope{
-				types.SettingsScope,
+				types.UserScope,
 				types.ProjectScope,
+				types.SettingsScope,
 			},
 		},
 	)