Example #1
0
File: util.py Project: F9O/govsite
def is_admin_logined():
    if is_logined():
        user = get_logined_user()
        if user.is_superuser:
            return True
    return False
Example #2
0
File: util.py Project: F9O/govsite
 def __get__(self, obj, objtype):
     from account.auth import get_logined_user
     return get_logined_user()