aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-09 13:32:54 +0200
committerhellekin <hellekin@cepheide.org>2020-10-09 13:32:54 +0200
commitc6081aefdea538ca7516d6e72878a70734bf83c9 (patch)
tree726f756bbaae9f3c54f723bc52c1e609b38db680 /app
parent383a840c50ca8f6df19677e93357e9dc6c0e043c (diff)
downloadincommon-map-c6081aefdea538ca7516d6e72878a70734bf83c9.tar.gz
Grant maintainer to group owner
Diffstat (limited to 'app')
-rw-r--r--app/jobs/agency_watcher_job.rb2
1 files changed, 2 insertions, 0 deletions
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])