Skip to content

Commit

Permalink
Merge pull request #873 from scientist-softserv/add-contact-email-to-…
Browse files Browse the repository at this point in the history
…permitted-param

🧹 Add contact_email_to to permitted params
  • Loading branch information
Shana Moore authored Oct 17, 2023
2 parents b78eba1 + 525beb6 commit 4101a0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/admin/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ def update
private

def account_params
params.require(:account).permit(:name, :cname, :title, *@account.public_settings.keys)
params.require(:account).permit(:name, :cname, :title,
*@account.public_settings(
is_superadmin: current_user.is_superadmin
).keys)
end

def set_current_account
Expand Down

0 comments on commit 4101a0d

Please sign in to comment.