Skip to content

Commit

Permalink
新しい設定が変更できないのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Oct 10, 2023
1 parent e21874f commit c5bcd1e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/controllers/admin/friend_servers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create
def update
authorize :friend_server, :update?

if @friend.update(resource_params)
if @friend.update(update_resource_params)
redirect_to admin_friend_servers_path
else
render action: :edit
Expand Down Expand Up @@ -79,7 +79,11 @@ def set_friend
end

def resource_params
params.require(:friend_domain).permit(:domain, :inbox_url, :available, :pseudo_relay, :unlocked, :allow_all_posts)
params.require(:friend_domain).permit(:domain, :inbox_url, :available, :pseudo_relay, :delivery_local, :unlocked, :allow_all_posts)
end

def update_resource_params
params.require(:friend_domain).permit(:inbox_url, :available, :pseudo_relay, :delivery_local, :unlocked, :allow_all_posts)
end

def warn_signatures_not_enabled!
Expand Down

0 comments on commit c5bcd1e

Please sign in to comment.