mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Show only projects where user is creator, has project access >= 20, or has group access.
This commit is contained in:
parent
edcb766b63
commit
930afdc337
2 changed files with 9 additions and 2 deletions
1
app.js
1
app.js
|
@ -448,6 +448,7 @@ app.get('/gitlab', function (req, res) {
|
|||
models.User.findById(req.cookies.userid)
|
||||
.then(function(user) {
|
||||
ret.accesstoken = user.accessToken;
|
||||
ret.profileid = user.profileid;
|
||||
request(
|
||||
config.gitlab.baseURL + '/api/v3/projects?access_token=' + user.accessToken,
|
||||
function(error, httpResponse, body) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue