summaryrefslogtreecommitdiffstats
path: root/extensions/PhabBugz/bin
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-03-02 21:20:43 +0100
committerGitHub <noreply@github.com>2018-03-02 21:20:43 +0100
commit34b8e7eda7b6edddcf736dcd8f28dc9027391679 (patch)
tree4ab1d8a93bb94dbdc394eeda96e2686e8de5c98a /extensions/PhabBugz/bin
parent785a05910108a6d032e802605762d7567dec4123 (diff)
downloadbugzilla-34b8e7eda7b6edddcf736dcd8f28dc9027391679.tar.gz
bugzilla-34b8e7eda7b6edddcf736dcd8f28dc9027391679.tar.xz
Bug 1402494 - BMO Integration User is a full administrative user on Phabricator
Diffstat (limited to 'extensions/PhabBugz/bin')
-rwxr-xr-xextensions/PhabBugz/bin/update_project_members.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/extensions/PhabBugz/bin/update_project_members.pl b/extensions/PhabBugz/bin/update_project_members.pl
index 2a305da3d..fe62170a6 100755
--- a/extensions/PhabBugz/bin/update_project_members.pl
+++ b/extensions/PhabBugz/bin/update_project_members.pl
@@ -59,9 +59,15 @@ foreach my $group (@$sync_groups) {
name => $phab_project_name
});
if (!$project) {
+ my $secure_revision = Bugzilla::Extension::PhabBugz::Project->new_from_query({
+ name => 'secure-revision'
+ });
$project = Bugzilla::Extension::PhabBugz::Project->create({
name => $phab_project_name,
- description => 'BMO Security Group for ' . $group->name
+ description => 'BMO Security Group for ' . $group->name,
+ view_policy => $secure_revision->phid,
+ edit_policy => $secure_revision->phid,
+ join_policy => $secure_revision->phid
});
}