diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2017-01-25 08:47:16 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2017-01-25 18:42:34 +0100 |
commit | 0e34dd6542afecc0890f77fbcb497fb5d8690d5b (patch) | |
tree | 4176567b17dda509e6c8794848b3d662e56877a4 /aurweb/exceptions.py | |
parent | 70db022aa8287c57a2ee03328ae893ba8b83b192 (diff) | |
download | aur-0e34dd6542afecc0890f77fbcb497fb5d8690d5b.tar.gz aur-0e34dd6542afecc0890f77fbcb497fb5d8690d5b.tar.xz |
git-serve: Implement IP address bans
Currently, IP address bans affect the web interface only. Make sure they
are honored in the SSH interface as well.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb/exceptions.py')
-rw-r--r-- | aurweb/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/aurweb/exceptions.py b/aurweb/exceptions.py index 639f9e09..664db68c 100644 --- a/aurweb/exceptions.py +++ b/aurweb/exceptions.py @@ -6,6 +6,10 @@ class MaintenanceException(AurwebException): pass +class BannedException(AurwebException): + pass + + class PermissionDeniedException(AurwebException): def __init__(self, user): msg = 'permission denied: {:s}'.format(user) |