settings_controller.rb 768 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
  2. class SettingsController < ApplicationController
  3. before_filter :authentication_check
  4. # GET /settings
  5. def index
  6. return if deny_if_not_role('Admin')
  7. model_index_render(Setting, params)
  8. end
  9. # GET /settings/1
  10. def show
  11. return if deny_if_not_role('Admin')
  12. model_show_render(Setting, params)
  13. end
  14. # POST /settings
  15. def create
  16. return if deny_if_not_role('Admin')
  17. model_create_render(Setting, params)
  18. end
  19. # PUT /settings/1
  20. def update
  21. return if deny_if_not_role('Admin')
  22. model_update_render(Setting, params)
  23. end
  24. # DELETE /settings/1
  25. def destroy
  26. return if deny_if_not_role('Admin')
  27. model_destory_render(Setting, params)
  28. end
  29. end