def unban_user
    @user = User.find(params[:id])
    notice_text = check_and_unban(@user, 'user') ? 'Author unbanned.' : 'Only banned authors can be unbanned.'
    flash[:notice] = notice_text
    redirect_back(fallback_location: root_path)