diff options
author | hellekin <hellekin@cepheide.org> | 2020-10-09 13:32:54 +0200 |
---|---|---|
committer | hellekin <hellekin@cepheide.org> | 2020-10-09 13:32:54 +0200 |
commit | c6081aefdea538ca7516d6e72878a70734bf83c9 (patch) | |
tree | 726f756bbaae9f3c54f723bc52c1e609b38db680 | |
parent | 383a840c50ca8f6df19677e93357e9dc6c0e043c (diff) | |
download | incommon-map-c6081aefdea538ca7516d6e72878a70734bf83c9.tar.gz |
Grant maintainer to group owner
-rw-r--r-- | app/jobs/agency_watcher_job.rb | 2 |
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]) |