trabajo-afectivo/app/controllers/settings_controller.rb

36 lines
768 B
Ruby
Raw Normal View History

2014-02-03 19:24:49 +00:00
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
2012-04-10 14:06:46 +00:00
class SettingsController < ApplicationController
before_filter :authentication_check
# GET /settings
def index
2013-07-19 14:21:44 +00:00
return if deny_if_not_role('Admin')
model_index_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# GET /settings/1
def show
2013-07-19 14:21:44 +00:00
return if deny_if_not_role('Admin')
model_show_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# POST /settings
def create
2013-07-19 14:21:44 +00:00
return if deny_if_not_role('Admin')
model_create_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# PUT /settings/1
def update
2013-07-19 14:21:44 +00:00
return if deny_if_not_role('Admin')
model_update_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# DELETE /settings/1
def destroy
2013-07-19 14:21:44 +00:00
return if deny_if_not_role('Admin')
model_destory_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
end