diff options
author | Erik Johnston <erik@matrix.org> | 2014-09-04 16:16:26 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-09-05 17:13:03 +0100 |
commit | 95037d8d9df113fef85953a6f277b095bda997ad (patch) | |
tree | 30b701ab39c3e88af5bdb8d5e902f65a8af81d87 /synapse/api/auth.py | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-95037d8d9df113fef85953a6f277b095bda997ad.tar.xz |
Change the default power levels to be 0, 50 and 100
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index b4eda3df01..0681a1f710 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -172,7 +172,7 @@ class Auth(object): if kick_level: kick_level = int(kick_level) else: - kick_level = 5 + kick_level = 50 if user_level < kick_level: raise AuthError( @@ -189,7 +189,7 @@ class Auth(object): if ban_level: ban_level = int(ban_level) else: - ban_level = 5 # FIXME (erikj): What should we do here? + ban_level = 50 # FIXME (erikj): What should we do here? if user_level < ban_level: raise AuthError(403, "You don't have permission to ban") |