diff --git a/app/models/concerns/owner.rb b/app/models/concerns/owner.rb index c7d2d489a..7de6f5be6 100644 --- a/app/models/concerns/owner.rb +++ b/app/models/concerns/owner.rb @@ -3,6 +3,8 @@ module Owner included do validates :owner, presence: true - after_create -> { relations.create actor_id: owner.id, actor_type: owner.class.to_s, role: 'admin' } + after_create do + relations.create({ actor_id: owner.id, actor_type: owner.class.to_s, role: 'admin' }, without_protection: true) + end end end