Skip to content

Commit

Permalink
Fixes #22983, #22010 - ignore persistence authz for relations
Browse files Browse the repository at this point in the history
(cherry picked from commit 248d1f9)
  • Loading branch information
ares authored and mmoll committed May 31, 2018
1 parent 219d6e5 commit be47e78
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/config_group_class.rb
Expand Up @@ -9,4 +9,8 @@ class ConfigGroupClass < ApplicationRecord
validates :puppetclass, :presence => true
validates :config_group, :presence => true,
:uniqueness => { :scope => :puppetclass_id }

def check_permissions_after_save
true
end
end
4 changes: 4 additions & 0 deletions app/models/host_class.rb
Expand Up @@ -11,4 +11,8 @@ class HostClass < ApplicationRecord
def name
"#{host} - #{puppetclass}"
end

def check_permissions_after_save
true
end
end
4 changes: 4 additions & 0 deletions app/models/host_config_group.rb
Expand Up @@ -5,4 +5,8 @@ class HostConfigGroup < ApplicationRecord
belongs_to :config_group

validates :host_id, :uniqueness => { :scope => [:config_group_id, :host_type] }

def check_permissions_after_save
true
end
end
4 changes: 4 additions & 0 deletions app/models/hostgroup_class.rb
Expand Up @@ -11,4 +11,8 @@ class HostgroupClass < ApplicationRecord
def name
"#{hostgroup} - #{puppetclass}"
end

def check_permissions_after_save
true
end
end

0 comments on commit be47e78

Please sign in to comment.