ref: refs/heads/master
commit fbde9b1b583499a3d5ba723a29651f03fd935277
Author: Josef Reidinger
Date: Thu Jul 16 08:33:29 2009 +0200
fix permissions fix to handle only case when permissions really missing
---
.../app/controllers/system_time_controller.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/plugins/systemtime/app/controllers/system_time_controller.rb b/plugins/systemtime/app/controllers/system_time_controller.rb
index 8b6da35..4be17b2 100644
--- a/plugins/systemtime/app/controllers/system_time_controller.rb
+++ b/plugins/systemtime/app/controllers/system_time_controller.rb
@@ -47,7 +47,11 @@ class SystemTimeController < ApplicationController
def index
@systemtime = load_proxy 'org.opensuse.yast.modules.yapi.time'
- unless @systemtime
+ unless @systemtime
+ return false
+ end
+
+ unless @permissions[:read]
flash[:warning] = "No permissions for time module"
redirect_to root_path
return false
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org