Merge branch 'pre_trustie_server' into trustie_server

This commit is contained in:
2023-03-03 10:27:39 +08:00
18 changed files with 356 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
class Admins::OrganizationsController < Admins::BaseController
before_action :finder_org, except: [:index]
def index
@orgs = paginate Organization.all
end
def show
end
def destroy
@org.destroy!
Admins::DeleteOrganizationService.call(@org.login)
render_delete_success
end
private
def finder_org
@org = Organization.find(params[:id])
end
end