From c6081aefdea538ca7516d6e72878a70734bf83c9 Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 9 Oct 2020 13:32:54 +0200 Subject: Grant maintainer to group owner --- app/jobs/agency_watcher_job.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') diff --git a/app/jobs/agency_watcher_job.rb b/app/jobs/agency_watcher_job.rb index 5cc0256..5d154be 100644 --- a/app/jobs/agency_watcher_job.rb +++ b/app/jobs/agency_watcher_job.rb @@ -29,6 +29,8 @@ class AgencyWatcherJob < ApplicationJob Rails.logger.debug("AgencyWatcher: grant leader to %s in %s" % [user.username, g]) # Grant leader r.grant(:leader) + # Grant maintainer + r.grant(:maintainer) elsif r.roles == 0 # No role: grant editor Rails.logger.debug("AgencyWatcher: grant editor to %s in %s" % [user.username, g]) -- cgit v1.2.3