21 lines
458 B
Ruby
21 lines
458 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Admin
|
|
class OrganizationsController < ApplicationController
|
|
feature_category :organization
|
|
|
|
before_action :check_feature_flag!
|
|
before_action only: [:index] do
|
|
push_frontend_feature_flag(:allow_organization_creation, current_user)
|
|
end
|
|
|
|
def index; end
|
|
|
|
private
|
|
|
|
def check_feature_flag!
|
|
access_denied! unless Feature.enabled?(:ui_for_organizations, current_user)
|
|
end
|
|
end
|
|
end
|