diff --git a/module/gitlab/control.php b/module/gitlab/control.php index 9bdf308131..1adc2cbffd 100644 --- a/module/gitlab/control.php +++ b/module/gitlab/control.php @@ -1066,7 +1066,7 @@ class gitlab extends control $gitlabTags = $this->gitlab->apiGetTags($gitlabID, $projectID); $protectTags = $this->gitlab->apiGetBranchPrivs($gitlabID, $projectID, '', 'name_asc'); - $protectNames = array_keys($protectBranches); + $protectNames = array_keys($protectTags); $tags = array(); foreach($gitlabTags as $tag) diff --git a/module/gitlab/view/createtagpriv.html.php b/module/gitlab/view/createtagpriv.html.php index 44296d5d22..68cb9e1821 100644 --- a/module/gitlab/view/createtagpriv.html.php +++ b/module/gitlab/view/createtagpriv.html.php @@ -20,7 +20,7 @@