mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Backport #476 * fix repo access * fix permission syncing Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
@@ -28,6 +28,7 @@ FROM repos LEFT OUTER JOIN builds ON build_id = (
|
||||
)
|
||||
INNER JOIN perms ON perms.perm_repo_id = repos.repo_id
|
||||
WHERE perms.perm_user_id = ?
|
||||
AND (perms.perm_push = 1 OR perms.perm_admin = 1)
|
||||
AND repos.repo_active = 1
|
||||
ORDER BY repo_full_name ASC;
|
||||
|
||||
@@ -57,5 +58,6 @@ FROM repos
|
||||
INNER JOIN perms ON perms.perm_repo_id = repos.repo_id
|
||||
INNER JOIN builds ON builds.build_repo_id = repos.repo_id
|
||||
WHERE perms.perm_user_id = ?
|
||||
AND (perms.perm_push = 1 OR perms.perm_admin = 1)
|
||||
ORDER BY build_id DESC
|
||||
LIMIT 50
|
||||
|
||||
Reference in New Issue
Block a user