File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export default class VerdaccioGitLab implements VerdaccioGitLabPlugin {
103
103
GitlabAPI . Users . current ( )
104
104
. then ( response => {
105
105
if ( user !== response . username ) {
106
- return cb ( getForbidden ( 'wrong gitlab username' ) ) ;
106
+ return cb ( getUnauthorized ( 'wrong gitlab username' ) ) ;
107
107
}
108
108
109
109
const publishLevelId = ACCESS_LEVEL_MAPPING [ this . publishLevel ] ;
@@ -177,7 +177,7 @@ export default class VerdaccioGitLab implements VerdaccioGitLabPlugin {
177
177
return cb ( null , true ) ;
178
178
} else {
179
179
this . logger . debug ( `[gitlab] deny access to package: ${ _package . name } ` ) ;
180
- return cb ( getForbidden ( 'access denied, user not authenticated and anonymous access disabled' ) ) ;
180
+ return cb ( getUnauthorized ( 'access denied, user not authenticated and anonymous access disabled' ) ) ;
181
181
}
182
182
}
183
183
}
You can’t perform that action at this time.
0 commit comments