Commit f8bba7fe authored by gregor herrmann's avatar gregor herrmann

dpt-salsa: activate gitlab's 'no_access' access level.

Previously ignored because it needs GitLab::API::v4 0.11 but now we require
0.13 anyway.
parent b4dd409c
......@@ -6,7 +6,7 @@ use 5.010;
use File::Spec;
use Getopt::Long;
use Git;
use GitLab::API::v4::Constants qw( :all ); # 0.11 for $GITLAB_ACCESS_LEVEL_NO_ACCESS
use GitLab::API::v4::Constants 0.11 qw( :all );
use GitLab::API::v4 0.13;
use JSON;
use Pod::Usage qw( pod2usage );
......@@ -76,8 +76,7 @@ my $api = GitLab::API::v4->new(
# data
my %levels_name = (
# needs GitLab::API::v4::Constants 0.11
# no_access => $GITLAB_ACCESS_LEVEL_NO_ACCESS,
no_access => $GITLAB_ACCESS_LEVEL_NO_ACCESS,
guest => $GITLAB_ACCESS_LEVEL_GUEST,
reporter => $GITLAB_ACCESS_LEVEL_REPORTER,
developer => $GITLAB_ACCESS_LEVEL_DEVELOPER,
......@@ -86,8 +85,7 @@ my %levels_name = (
);
my %levels_code = (
# needs GitLab::API::v4::Constants 0.11
# $GITLAB_ACCESS_LEVEL_NO_ACCESS => 'no access',
$GITLAB_ACCESS_LEVEL_NO_ACCESS => 'no access',
$GITLAB_ACCESS_LEVEL_GUEST => 'guest',
$GITLAB_ACCESS_LEVEL_REPORTER => 'reporter',
$GITLAB_ACCESS_LEVEL_DEVELOPER => 'developer',
......@@ -818,7 +816,7 @@ Required.
=item access_level
One of I<GitLab>'s access levels: [no_access; not implemented] guest, reporter, developer, maintainer, owner.
One of I<GitLab>'s access levels: no_access, guest, reporter, developer, maintainer, owner.
Optional, defaults to C<maintainer>.
=back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment