ref: refs/heads/master commit 6492a5edb1a641793315c2022214a5f4dda367cd Author: Josef Reidinger <jreidinger@suse.cz> Date: Mon Dec 14 09:28:39 2009 +0100 revert permission checking move --- plugins/ntp/app/controllers/ntp_controller.rb | 1 + plugins/ntp/app/models/ntp.rb | 1 - 2 files changed, 1 insertions(+), 1 deletions(-) diff --git a/plugins/ntp/app/controllers/ntp_controller.rb b/plugins/ntp/app/controllers/ntp_controller.rb index f274cfe..38697a6 100644 --- a/plugins/ntp/app/controllers/ntp_controller.rb +++ b/plugins/ntp/app/controllers/ntp_controller.rb @@ -12,6 +12,7 @@ class NtpController < ApplicationController end def update + yapi_perm_check "ntp.synchronize" root = params["ntp"] if root == nil || root == {} #FIXME exception for this raise InvalidParameters.new :ntp => "Missing" diff --git a/plugins/ntp/app/models/ntp.rb b/plugins/ntp/app/models/ntp.rb index ee89f8d..4e6f970 100644 --- a/plugins/ntp/app/models/ntp.rb +++ b/plugins/ntp/app/models/ntp.rb @@ -4,7 +4,6 @@ class Ntp < BaseModel::Base validates_inclusion_of :'actions[:synchronize]', :in => [ true, false ], :allow_nil => true - before_save { yapi_perm_check "ntp.synchronize" if actions[:synchronize] } public def initialize(args={}) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org