File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ module.exports = async (pluginConfig, context) => {
5353 json : true ,
5454 headers : { 'Private-Token' : gitlabToken } ,
5555 } ) ) ;
56+
57+ if ( ! ( ( projectAccess && projectAccess . access_level >= 30 ) || ( groupAccess && groupAccess . access_level >= 30 ) ) ) {
58+ errors . push ( getError ( 'EGLNOPERMISSION' , { repoId} ) ) ;
59+ }
5660 } catch ( error ) {
5761 if ( error . statusCode === 401 ) {
5862 errors . push ( getError ( 'EINVALIDGLTOKEN' , { repoId} ) ) ;
@@ -62,10 +66,6 @@ module.exports = async (pluginConfig, context) => {
6266 throw error ;
6367 }
6468 }
65-
66- if ( ! ( ( projectAccess && projectAccess . access_level >= 30 ) || ( groupAccess && groupAccess . access_level >= 30 ) ) ) {
67- errors . push ( getError ( 'EGLNOPERMISSION' , { repoId} ) ) ;
68- }
6969 } else {
7070 errors . push ( getError ( 'ENOGLTOKEN' , { repoId} ) ) ;
7171 }
You can’t perform that action at this time.
0 commit comments