diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-10-06 22:02:22 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-10-06 22:02:22 +0100 |
commit | 1edae946cc31eda0be09f622f547a794f8617fff (patch) | |
tree | 2cec9b20607648c0731808f36866d7deaa091e93 /git.liw.fi.sh | |
parent | 4ec8bac039fa6f4fc769ef87c857fab812abbdd3 (diff) | |
download | liw-gitano-acl-test-suite-1edae946cc31eda0be09f622f547a794f8617fff.tar.gz |
Test that non-admin can't remove a user
Diffstat (limited to 'git.liw.fi.sh')
-rw-r--r-- | git.liw.fi.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |