chore: ability to delete user in super admin console

fixes: #4164
This commit is contained in:
smartdev58 2022-10-18 10:05:28 +02:00 committed by GitHub
parent a1ce188dab
commit e34e975776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ class User < ApplicationRecord
class_name: :PortalMember, class_name: :PortalMember,
dependent: :destroy_async dependent: :destroy_async
has_many :portals, has_many :portals,
through: :portals_members, through: :portal_members,
class_name: :Portal, class_name: :Portal,
dependent: :nullify, dependent: :nullify,
source: :portal source: :portal

View file

@ -346,7 +346,7 @@ Rails.application.routes.draw do
resources :accounts, only: [:index, :new, :create, :show, :edit, :update] do resources :accounts, only: [:index, :new, :create, :show, :edit, :update] do
post :seed, on: :member post :seed, on: :member
end end
resources :users, only: [:index, :new, :create, :show, :edit, :update] resources :users, only: [:index, :new, :create, :show, :edit, :update, :destroy]
resources :access_tokens, only: [:index, :show] resources :access_tokens, only: [:index, :show]
resources :installation_configs, only: [:index, :new, :create, :show, :edit, :update] resources :installation_configs, only: [:index, :new, :create, :show, :edit, :update]
resources :agent_bots, only: [:index, :new, :create, :show, :edit, :update] resources :agent_bots, only: [:index, :new, :create, :show, :edit, :update]