1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-17 13:39:46 +00:00

UI for admins to assign ip pools to servers

هذا الالتزام موجود في:
Adam Cooke
2017-04-21 11:26:19 +01:00
الأصل 79f7707d09
التزام 2def9c0fb9
6 ملفات معدلة مع 49 إضافات و27 حذوفات

عرض الملف

@@ -1,9 +1,16 @@
class OrganizationIPPoolsController < ApplicationController
include WithinOrganization
before_action :admin_required, :only => [:assignments]
def index
@ip_pools = organization.ip_pools.dedicated.order(:name)
end
def assignments
organization.ip_pool_ids = params[:ip_pools]
organization.save!
redirect_to [organization, :ip_pools], :notice => "Organization IP pools have been updated successfully"
end
end