def METHOD_NAME(self, subscription: WorkspaceSubscription, user_role: WorkspaceRoles):
    subscription.state = WorkspaceSubscriptionState.ACCEPTED
    subscription.evaluator = self._user
    subscription.evaluation_date = datetime.utcnow()
    role = self._role_lib.create_one(
        user=subscription.author,
        workspace=subscription.workspace,
        role_level=user_role.level,
        email_notification_type=EmailNotificationType.SUMMARY,
    )
    self._session.add(subscription)
    self._session.add(role)
    self._session.flush()
    return subscription