From: Imre Farkas <ifarkas(a)redhat.com>
https://bugzilla.redhat.com/show_bug.cgi?id=788048
---
src/app/views/pools/_images.html.haml | 33 +++++++++++++++++----------------
1 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/src/app/views/pools/_images.html.haml
b/src/app/views/pools/_images.html.haml
index c580d96..cf5513d 100644
--- a/src/app/views/pools/_images.html.haml
+++ b/src/app/views/pools/_images.html.haml
@@ -5,21 +5,22 @@
=image_tag 'flash_error_icon.png', :alt => 'Errors'
=flash[:error]
-else
- - @pool.catalogs.each do |catalog|
- %div.catalog_deployments_and_images
- %h1
- = catalog.name
- = t('.catalog')
- - catalog.deployables.each do |deployable|
- %h2
- = deployable.name
- = t('.deployable')
+ - if check_privilege(Privilege::VIEW, PoolFamily, @pool.pool_family)
+ - @pool.catalogs.each do |catalog|
+ %div.catalog_deployments_and_images
+ %h1
+ = catalog.name
+ = t('.catalog')
+ - catalog.deployables.each do |deployable|
+ %h2
+ = deployable.name
+ = t('.deployable')
- - deployable.fetch_images.compact.each do |image|
- %h3
- = t('.image')
- = "#{image.name} (#{image.uuid})"
+ - deployable.fetch_images.compact.each do |image|
+ %h3
+ = t('.image')
+ = "#{image.name} (#{image.uuid})"
- %ul
- - image.provider_images.each do |provider_image|
- %li= t('.pushed', :uuid => provider_image.uuid, :provider =>
provider_image.provider_name)
+ %ul
+ - image.provider_images.each do |provider_image|
+ %li= t('.pushed', :uuid => provider_image.uuid, :provider
=> provider_image.provider_name)
--
1.7.6.5