summaryrefslogtreecommitdiffstats
path: root/pyload/webui/app/pyloadweb.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 21:38:42 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:01:29 +0200
commit9327b55e147d95b5865f23788f980c7268ea03e3 (patch)
tree0260b6f90b9e6fab5548e29e44b6d66f3334c98e /pyload/webui/app/pyloadweb.py
parentPEP-8, Python Zen, refactor and reduce code (part 9 in master module/network) (diff)
downloadpyload-9327b55e147d95b5865f23788f980c7268ea03e3.tar.xz
Spare code cosmetics (7)
Diffstat (limited to 'pyload/webui/app/pyloadweb.py')
-rw-r--r--pyload/webui/app/pyloadweb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/webui/app/pyloadweb.py b/pyload/webui/app/pyloadweb.py
index 154409655..f4edb6bd4 100644
--- a/pyload/webui/app/pyloadweb.py
+++ b/pyload/webui/app/pyloadweb.py
@@ -486,7 +486,7 @@ def admin():
for data in user.itervalues():
data['perms'] = {}
get_permission(data['perms'], data['permission'])
- data['perms']['admin'] = True if data['role'] is 0 else False
+ data['perms']['admin'] = data['role'] is 0
s = request.environ.get('beaker.session')
if request.environ.get('REQUEST_METHOD', "GET") == "POST":