def get_current_user(self): user = users.get_current_user() if user: user.administrator = users.is_current_user_admin() return user