From 1edae946cc31eda0be09f622f547a794f8617fff Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 6 Oct 2013 22:02:22 +0100 Subject: Test that non-admin can't remove a user --- git.liw.fi.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'git.liw.fi.sh') diff --git a/git.liw.fi.sh b/git.liw.fi.sh index 56945e4..653e6ec 100644 --- a/git.liw.fi.sh +++ b/git.liw.fi.sh @@ -74,5 +74,8 @@ user_del() then secret=$(awk '{ s = $2 } END { print s }' "$DATADIR/temp") run_gitano_as "$1" user del "$2" "$secret" + else + cat "$DATADIR/temp" 1>&2 + return 1 fi } -- cgit v1.2.1