From ca73678ccd96730cbf9979edfbb2e7492f5041bc Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 9 Dec 2021 07:15:45 +0000 Subject: [PATCH] * Modify comment. --- module/gitlab/control.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 2c010170ce..f0bee97aa1 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -767,11 +767,10 @@ class gitlab extends control return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('browseBranchPriv', "gitlabID=$gitlabID&projectID=$projectID"))); } - // Initialize data, and the operation authority is the maintainers by default. $branchPriv = new stdClass(); $branchPriv->name = ''; - $branchPriv->mergeAccessLevel = 40; - $branchPriv->pushAccessLevel = 40; + $branchPriv->mergeAccessLevel = 40; // Initialize data, and the operation authority is the maintainers by default. + $branchPriv->pushAccessLevel = 40; // Initialize data, and the operation authority is the maintainers by default. $gitlab = $this->gitlab->getByID($gitlabID); $title = $this->lang->gitlab->createBranchPriv;