ref: refs/heads/master
commit e177b188238d40a113efafeec56a8e6f9a5a2959
Author: Josef Reidinger
Date: Tue Jul 14 16:36:31 2009 +0200
change non-exist field install_permission to permissions getted from proxy (should stop ability to install for some users if they don't have permissions)
---
.../app/views/patch_updates/_patches.html.erb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/patch_updates/app/views/patch_updates/_patches.html.erb b/plugins/patch_updates/app/views/patch_updates/_patches.html.erb
index 190613f..e0112d7 100644
--- a/plugins/patch_updates/app/views/patch_updates/_patches.html.erb
+++ b/plugins/patch_updates/app/views/patch_updates/_patches.html.erb
@@ -4,7 +4,7 @@
<th width=8%><%=_("Kind")%></th>
<th width=15%><%=_("Name")%></th>
<th width="100"><%=_("Summary")%></th>
- <% if @install_permission == nil %>
+ <% if @permissions[:install] %>
<th width=15%><%=_("Source")%></th>
<th class="last" width=5%><%=_("Install")%></th>
<% else %>
@@ -32,7 +32,7 @@
<td class="label"><%=h patch_update.name %></td>
<td class="label"><%=h patch_update.summary %></td>
<td><%=h patch_update.repo %></td>
- <% if @install_permission.nil? %>
+ <% if @permissions[:install] %>
<td><%= link_to image_tag("/icons/system-software-install.png"\
, :alt => "install", :class=>"icon", :border => "0"),\
:controller => 'patch_updates', :id => patch_update.resolvable_id,\
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org