trabajo-afectivo/app/controllers/settings_controller.rb

36 lines
813 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
2015-02-15 09:12:27 +00:00
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_index_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# GET /settings/1
def show
2015-02-15 09:12:27 +00:00
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_show_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# POST /settings
def create
2015-02-15 09:12:27 +00:00
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_create_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# PUT /settings/1
def update
2015-02-15 09:12:27 +00:00
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_update_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
# DELETE /settings/1
def destroy
2015-02-15 09:12:27 +00:00
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_destory_render(Setting, params)
2012-04-10 14:06:46 +00:00
end
end