mirror of
https://github.com/status-im/codimd.git
synced 2025-02-26 16:20:40 +00:00
Only pull projects the user owns.
This commit is contained in:
parent
0adc0864d5
commit
d6316a24c9
2
app.js
2
app.js
@ -449,7 +449,7 @@ app.get('/gitlab', function (req, res) {
|
||||
.then(function(user) {
|
||||
ret.accesstoken = user.accessToken;
|
||||
request(
|
||||
config.gitlab.baseURL + '/api/v3/projects?access_token=' + user.accessToken,
|
||||
config.gitlab.baseURL + '/api/v3/projects/owned?access_token=' + user.accessToken,
|
||||
function(error, httpResponse, body) {
|
||||
if (!error && httpResponse.statusCode == 200) {
|
||||
ret.projects = JSON.parse(body);
|
||||
|
Loading…
x
Reference in New Issue
Block a user