Project

General

Profile

Revision ada932ab

Added by Dmitri Dolguikh over 7 years ago

Fixes #7647: Added support for external registries

View differences:

lib/foreman_docker/engine.rb
45 45
          menu :top_menu, :new_container, :caption => N_('New container'),
46 46
                                          :url_hash => { :controller => :containers,
47 47
                                                         :action => :new }
48
          menu :top_menu, :registries, :caption => N_('Registries'),
49
                                       :url_hash => { :controller => :registries,
50
                                                      :action => :index }
48 51
        end
49 52

  
50 53
        security_block :containers do
......
57 60
                                          :containers         => [:new]
58 61
          permission :destroy_containers, :containers         => [:destroy]
59 62
        end
63

  
64
        security_block :registries do
65
          permission :view_registries,    :registries         => [:index, :show]
66
          permission :create_registries,  :registries         => [:new, :create, :update, :edit]
67
          permission :destroy_registries, :registries         => [:destroy]
68
        end
60 69
      end
61 70

  
62 71
    end

Also available in: Unified diff