aboutsummaryrefslogtreecommitdiff
path: root/app/jobs/agency_watcher_job.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs/agency_watcher_job.rb')
-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])