- fixed bad priv checking when displaying create instance form - removes duplicit header key from image COLUMNS definition
--- src/app/controllers/instance_controller.rb | 2 +- src/app/models/image.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/controllers/instance_controller.rb b/src/app/controllers/instance_controller.rb index e73d7cd..c898691 100644 --- a/src/app/controllers/instance_controller.rb +++ b/src/app/controllers/instance_controller.rb @@ -39,7 +39,7 @@ class InstanceController < ApplicationController
def new @instance = Instance.new(params[:instance]) - require_privilege(Privilege::POOL_VIEW, @instance.pool) if @instance.pool + require_privilege(Privilege::INSTANCE_MODIFY, @instance.pool) if @instance.pool @pools = Pool.list_for_user(@current_user, Privilege::POOL_VIEW) end
diff --git a/src/app/models/image.rb b/src/app/models/image.rb index dbde903..9df4185 100644 --- a/src/app/models/image.rb +++ b/src/app/models/image.rb @@ -52,7 +52,7 @@ class Image < ActiveRecord::Base # html table structure COLUMNS = [ {:id => 'id', :header => '<input type="checkbox" id="image_id_all" onclick="checkAll(event)">', :opts => {:checkbox_id => 'image_id', :searchable => false, :sortable => false, :width => '1px', :class => 'center'}}, - {:id => 'expand_button', :header => '', :header => '', :opts => {:searchable => false, :sortable => false, :width => '1px'}}, + {:id => 'expand_button', :header => '', :opts => {:searchable => false, :sortable => false, :width => '1px'}}, {:id => 'name', :header => 'Name', :opts => {:width => "30%"}}, {:id => 'architecture', :header => 'Architecture', :opts => {:width => "10%"}}, {:id => 'instances', :header => 'Instances', :opts => {:sortable => false, :width => "10%"}},
On Mon, 2010-05-24 at 17:17 +0200, Jan Provaznik wrote:
src/app/controllers/instance_controller.rb | 2 +- src/app/models/image.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
ACK
deltacloud-devel@lists.fedorahosted.org