def put(self, user_name: str) -> User:
        """
        Updates the User Resource with the
        name.
        """
        current = current_user()
        if current.name == user_name or current.is_admin:
            user = self._get_or_abort(user_name)
            self.update(user)
            session.commit()
            session.add(user)
            return user
        else:
            abort(403)