Project

General

Profile

Revision d2e54db4

Added by David Davis over 7 years ago

Fixes #10029 - Docker registry API

View differences:

lib/foreman_docker/engine.rb
79 79
        end
80 80

  
81 81
        security_block :registries do
82
          permission :view_registries, { :registries => [:index, :show] },
82
          permission :view_registries,
83
                     { :registries => [:index, :show],
84
                       :'api/v2/registries' => [:index, :show] },
83 85
                     :resource_type => 'DockerRegistry'
84
          permission :create_registries, { :registries  => [:new, :create, :update, :edit] },
86
          permission :create_registries,
87
                     { :registries  => [:new, :create, :update, :edit],
88
                       :'api/v2/registries' => [:create, :update] },
85 89
                     :resource_type => 'DockerRegistry'
86
          permission :destroy_registries, { :registries => [:destroy] },
90
          permission :destroy_registries,
91
                     { :registries => [:destroy],
92
                       :'api/v2/registries' => [:destroy] },
87 93
                     :resource_type => 'DockerRegistry'
88 94
        end
89 95

  

Also available in: Unified diff