You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
392 B
19 lines
392 B
#! /usr/bin/python3
|
|
|
|
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
|
|
|
|
def get_id(self):
|
|
return "admin"
|
|
|