Project

General

Profile

Revision 8ffd2fd6

Added by Daniel Lobato GarcĂ­a almost 4 years ago

Fixes #20067 - Wrong constant name Docker/ImageSearch

View differences:

db/migrate/20180105090316_remove_docker_search_permission.rb
1
class RemoveDockerSearchPermission < ActiveRecord::Migration[4.2]
2
  def up
3
    Permission.where(
4
      :name => "search_repository_image_search",
5
      :resource_type => 'Docker/ImageSearch').destroy_all
6
  end
7

  
8
  def down
9
    Permission.where(
10
      :name => "search_repository_image_search",
11
      :resource_type => 'DockerRegistry').destroy_all
12
  end
13
end
lib/foreman_docker/engine.rb
102 102
                     { :image_search => [:auto_complete_repository_name,
103 103
                                         :auto_complete_image_tag,
104 104
                                         :search_repository] },
105
                     :resource_type => 'Docker/ImageSearch'
105
                     :resource_type => 'DockerRegistry'
106 106
        end
107 107

  
108 108
        add_all_permissions_to_default_roles

Also available in: Unified diff