mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 16:47:22 +00:00
Providers sharing (#1273)
* third party provider scoping * Simplify logic and allow only admins to mange providers * Broadcast fixes * FIX tests and build * Fixes * Reviews * Scope merchants * DRY fixes
This commit is contained in:
@@ -106,10 +106,13 @@ class UsersController < ApplicationController
|
||||
end
|
||||
|
||||
def user_params
|
||||
family_attrs = [ :name, :currency, :country, :date_format, :timezone, :locale, :month_start_day, :id ]
|
||||
family_attrs.push(:moniker, :default_account_sharing) if Current.user.admin?
|
||||
|
||||
params.require(:user).permit(
|
||||
:first_name, :last_name, :email, :profile_image, :redirect_to, :delete_profile_image, :onboarded_at,
|
||||
:show_sidebar, :default_period, :default_account_order, :show_ai_sidebar, :ai_enabled, :theme, :set_onboarding_preferences_at, :set_onboarding_goals_at, :locale,
|
||||
family_attributes: [ :name, :currency, :country, :date_format, :timezone, :locale, :month_start_day, :moniker, :default_account_sharing, :id ],
|
||||
family_attributes: family_attrs,
|
||||
goals: []
|
||||
)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user