From 84bac9c696173f44321f0f44b6d30a48897ec5b2 Mon Sep 17 00:00:00 2001 From: emorino Date: Wed, 11 Oct 2017 14:40:53 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20restreindre=20la=20modification=20des?= =?UTF-8?q?=20r=C3=A9visions=20a=20un=20utilisateur=20en=20particulier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoSVN.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/HowtoSVN.md b/HowtoSVN.md index 722a6941..43f07966 100644 --- a/HowtoSVN.md +++ b/HowtoSVN.md @@ -129,6 +129,15 @@ Repository has not been enabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook ~~~ +Si l’on veut restreindre la modification des révisions a un utilisateur en particulier, il faut ajouter ceci dans le hook `pre-revprop-change` : + +~~~ +if [ ! "$USER" = "user" ]; then + echo "Changing revision properties is only allowed to mmarmolle." >&2 + exit 1 +fi +~~~ + ## FAQ Lorsque l'on obtient un message du type :