fix: Feature flags are not be stored on account creation (#10387)
when creating an account via the platform API the feature flags do not get stored Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
@@ -4,6 +4,7 @@ class Platform::Api::V1::AccountsController < PlatformController
|
||||
def create
|
||||
@resource = Account.create!(account_params)
|
||||
update_resource_features
|
||||
@resource.save!
|
||||
@platform_app.platform_app_permissibles.find_or_create_by(permissible: @resource)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user