def get_current_user(self): user_id = self.current_user_id if user_id: return User.get_by_id(user_id)