Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> master : taking the correct permissions; Bug 537690
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Thu, 17 Sep 2009 13:26:11 +0200
  • Message-id: <E1MoF89-0007Im-BA@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 44ec242b3f15c0d37da87d03d54e35c6698660dc
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Thu Sep 17 13:26:11 2009 +0200

taking the correct permissions; Bug 537690
---
.../app/controllers/permissions_controller.rb | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/permissions/app/controllers/permissions_controller.rb
b/plugins/permissions/app/controllers/permissions_controller.rb
index 48887d6..23dd6c7 100644
--- a/plugins/permissions/app/controllers/permissions_controller.rb
+++ b/plugins/permissions/app/controllers/permissions_controller.rb
@@ -15,13 +15,13 @@ class PermissionsController < ApplicationController
end
@right_set_permissions = false
@right_get_permissions = false
- permissions = proxy.find(:all, :params => { :user_id => login, :filter =>
'org.opensuse.yast.webservice' })
+ permissions = proxy.find(:all, :params => { :user_id => login, :filter =>
'org.opensuse.yast.permissions' })
permissions.each do |permission|
- if permission.name == "org.opensuse.yast.webservice.write-permissions" &&
+ if permission.name == "org.opensuse.yast.permissions.write" &&
permission.grant
@right_set_permissions = true
end
- if permission.name == "org.opensuse.yast.webservice.read-permissions" &&
+ if permission.name == "org.opensuse.yast.permissions.read" &&
permission.grant
@right_get_permissions = true
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages