From c7c01b964ba888a47fa9918bc29031de29a95b3f Mon Sep 17 00:00:00 2001 From: lpoujol Date: Tue, 20 Aug 2019 11:10:16 +0200 Subject: [PATCH] =?UTF-8?q?(plomberie)=20Chercher=20tous=20les=20acc=C3=A8?= =?UTF-8?q?s=20d'un=20compte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoGitea.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/HowtoGitea.md b/HowtoGitea.md index 31365ed1..aaf1f293 100644 --- a/HowtoGitea.md +++ b/HowtoGitea.md @@ -302,4 +302,17 @@ L'astuce consiste à mettre dans le fichier de configuration : MAX_GIT_DIFF_LINES = 1000000 ``` -Augmenter à la valeur de votre choix. \ No newline at end of file +Augmenter à la valeur de votre choix. + +### Chercher tous les accès d'un compte + +``` +# mysql +MariaDB [(none)]> use git +MariaDB [git]> select repository.name, user.name, access.mode from access INNER JOIN user ON user.id = access.user_id INNER JOIN repository ON repository.id = access.repo_id WHERE user.name like '%USER%' \G +*************************** 1. row *************************** +name: REPO +name: USER +mode: 2 +1 row in set (0.00 sec) +