@@ -1880,7 +1880,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
18801880 traceAPIParams ( ctx , { req : censor ( req , "searchTerm" ) } ) ; // searchTerm may contain PII
18811881
18821882 const admin = await this . guardAdminAccess ( "adminGetBlockedRepositories" , { req } , Permission . ADMIN_USERS ) ;
1883- await this . auth . checkPermissionOnInstallation ( admin . id , "configure" ) ;
18841883
18851884 try {
18861885 return await this . installationService . adminGetBlockedRepositories ( admin . id , req ) ;
@@ -1901,7 +1900,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
19011900 { urlRegexp, blockUser } ,
19021901 Permission . ADMIN_USERS ,
19031902 ) ;
1904- await this . auth . checkPermissionOnInstallation ( admin . id , "configure" ) ;
19051903
19061904 return await this . installationService . adminCreateBlockedRepository ( admin . id , {
19071905 urlRegexp,
@@ -1913,7 +1911,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
19131911 traceAPIParams ( ctx , { id } ) ;
19141912
19151913 const admin = await this . guardAdminAccess ( "adminDeleteBlockedRepository" , { id } , Permission . ADMIN_USERS ) ;
1916- await this . auth . checkPermissionOnInstallation ( admin . id , "configure" ) ;
19171914
19181915 await this . installationService . adminDeleteBlockedRepository ( admin . id , id ) ;
19191916 }
@@ -2975,8 +2972,7 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
29752972 async adminGetBlockedEmailDomains ( ctx : TraceContextWithSpan ) : Promise < EmailDomainFilterEntry [ ] > {
29762973 const user = await this . checkAndBlockUser ( "adminGetBlockedEmailDomains" ) ;
29772974 await this . guardAdminAccess ( "adminGetBlockedEmailDomains" , { id : user . id } , Permission . ADMIN_USERS ) ;
2978- await this . auth . checkPermissionOnInstallation ( user . id , "configure" ) ;
2979- return this . installationService . adminGetBlockedEmailDomains ( user . id ) ;
2975+ return await this . installationService . adminGetBlockedEmailDomains ( user . id ) ;
29802976 }
29812977
29822978 async adminSaveBlockedEmailDomain (
@@ -2985,7 +2981,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
29852981 ) : Promise < void > {
29862982 const user = await this . checkAndBlockUser ( "adminSaveBlockedEmailDomain" ) ;
29872983 await this . guardAdminAccess ( "adminSaveBlockedEmailDomain" , { id : user . id } , Permission . ADMIN_USERS ) ;
2988- await this . auth . checkPermissionOnInstallation ( user . id , "configure" ) ;
29892984 await this . installationService . adminCreateBlockedEmailDomain ( user . id , domainFilterentry ) ;
29902985 }
29912986}
0 commit comments