<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def deactivate_user(self, user):
 """Deactivates a specified user. Returns `True` if a change was made. :param user: The user to deactivate """

        if user.active:
            user.active = False
            return True
        return False