Skip to content

Commit

Permalink
fix: 创建凭证后缺少编辑与使用权限 TencentBlueKing#2457
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliaozhong committed Oct 23, 2023
1 parent f5a7b21 commit 8cf07ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
Expand All @@ -41,6 +42,7 @@ public EsbFileSourceV3ResourceImpl(FileSourceAuthService fileSourceAuthService,
}

@Override
@Transactional(rollbackFor = {Exception.class, Error.class})
public EsbResp<EsbFileSourceSimpleInfoV3DTO> createFileSource(EsbCreateOrUpdateFileSourceV3Req req) {
req.fillAppResourceScope(appScopeMappingService);
Long appId = req.getAppId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
Expand Down Expand Up @@ -95,6 +96,7 @@ public Response<PageData<CredentialVO>> listCredentials(String username,
}

@Override
@Transactional(rollbackFor = {Exception.class, Error.class})
public Response<String> saveCredential(String username,
AppResourceScope appResourceScope,
String scopeType,
Expand Down

0 comments on commit 8cf07ed

Please sign in to comment.