Browse Source

comment Admin class

pull/1/head
wes 7 years ago
parent
commit
1bf2ae5e2f
  1. 2
      src/admin.py

2
src/admin.py

@ -4,12 +4,14 @@ class Admin:
def __init__(self):
return
# admin user is always authenticated for everything so it's a constant
def is_authenticated(self):
return True
def is_active(self):
return True
# we don't have anonymous users on this site
def is_anonymous(self):
return False

Loading…
Cancel
Save