zammad/app/controllers/ldap_sources_controller.rb
Mantas Masalskis 1615e3c995 Maintenance: Improve configuration details returned by the server.
Co-authored-by: Dusan Vuckovic <dv@zammad.com>
Co-authored-by: Florian Liebe <fl@zammad.com>
Co-authored-by: Mantas Masalskis <mm@zammad.com>
Co-authored-by: Marcel Bialas <mb@zammad.com>
Co-authored-by: Martin Gruner <mg@zammad.com>
2026-03-04 08:07:54 +01:00

34 lines
623 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
class LdapSourcesController < ApplicationController
include CanPrioritize
prepend_before_action :authenticate_and_authorize!
def index
model_index_render(LdapSource, params)
end
def show
model_show_render(LdapSource, params)
end
def create
model_create_render(LdapSource, params)
end
def update
model_update_render(LdapSource, params)
end
def destroy
model_destroy_render(LdapSource, params)
end
private
def sensitive_attributes(_input, _object)
LdapSource::SENSITIVE_FIELDS
end
end