[PATCH conductor] BZ788048: Fix permission checking on pools/_images

Mo Morsi mmorsi at redhat.com
Thu Mar 1 19:14:22 UTC 2012


On 03/01/2012 11:02 AM, ifarkas at redhat.com wrote:
> From: Imre Farkas <ifarkas at redhat.com>
>
> https://bugzilla.redhat.com/show_bug.cgi?id=788048
>
> Resending it based on Scott's suggestion.
> ---
>  src/app/views/pools/_images.html.haml |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/app/views/pools/_images.html.haml b/src/app/views/pools/_images.html.haml
> index c580d96..f5401fa 100644
> --- a/src/app/views/pools/_images.html.haml
> +++ b/src/app/views/pools/_images.html.haml
> @@ -5,7 +5,7 @@
>          =image_tag 'flash_error_icon.png', :alt => 'Errors'
>          =flash[:error]
>  -else
> -  - @pool.catalogs.each do |catalog|
> +  - @pool.catalogs.list_for_user(current_user, Privilege::VIEW).each do |catalog|
>      %div.catalog_deployments_and_images
>        %h1
>          = catalog.name

ACK. Works for me.

  -Mo




More information about the aeolus-devel mailing list