I am getting 'Access denied' for the app owner. I've invited another 'admin' and then can log-in. Does this check: if not users.is_current_user_admin(): includes a check for an app owner??