mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
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>
34 lines
623 B
Ruby
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
|