diff options
author | Matt Selsky <selsky@columbia.edu> | 2014-11-25 11:31:18 +0100 |
---|---|---|
committer | Gervase Markham <gerv@gerv.net> | 2014-11-25 11:31:18 +0100 |
commit | 649a38910889a9945e2ef22f5d6ff4d32fceeba6 (patch) | |
tree | 67a509e3c57566d7fd83a1d3ae70bb0e40d1948a /Bugzilla/Install.pm | |
parent | 977de764485c48c16c4b34e73ab2f1d08506b0a7 (diff) | |
download | bugzilla-649a38910889a9945e2ef22f5d6ff4d32fceeba6.tar.gz bugzilla-649a38910889a9945e2ef22f5d6ff4d32fceeba6.tar.xz |
Bug 317021 - improve description of bz_canusewhine* parameters. r=gerv.
Diffstat (limited to 'Bugzilla/Install.pm')
-rw-r--r-- | Bugzilla/Install.pm | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Bugzilla/Install.pm b/Bugzilla/Install.pm index 5a2266e36..d02c43d2f 100644 --- a/Bugzilla/Install.pm +++ b/Bugzilla/Install.pm @@ -135,11 +135,13 @@ use constant SYSTEM_GROUPS => ( }, { name => 'bz_canusewhineatothers', - description => 'Can configure whine reports for other users', + description => 'Can configure queries and schedules for periodic' + . ' reports to be run and sent via email to other users and groups', }, { name => 'bz_canusewhines', - description => 'User can configure whine reports for self', + description => 'Can configure queries and schedules for periodic' + . ' reports to be run and sent via email to themselves', # inherited_by means that users in the groups listed below are # automatically members of bz_canusewhines. inherited_by => ['editbugs', 'bz_canusewhineatothers'], @@ -217,8 +219,8 @@ sub update_system_groups { # Create most of the system groups foreach my $definition (SYSTEM_GROUPS) { - my $exists = new Bugzilla::Group({ name => $definition->{name} }); - if (!$exists) { + my $group = new Bugzilla::Group({ name => $definition->{name} }); + if (!$group) { $definition->{isbuggroup} = 0; $definition->{silently} = !$editbugs_exists; my $inherited_by = delete $definition->{inherited_by}; @@ -234,6 +236,10 @@ sub update_system_groups { } } } + elsif ($group->description ne $definition->{description}) { + $group->set_description($definition->{description}); + $group->update(); + } } $dbh->bz_commit_transaction(); |