Merged PR 563: develop動作確認不具合修正
## 概要 [Task3042: develop動作確認不具合修正](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3042) - ライセンスページで代行操作中の挙動を修正しました。 - 自アカウント取得APIにガードを設定して実行可能に修正 - 代行操作中は第五階層ユーザーとして扱われるように修正 ## レビューポイント - 共有 ## UIの変更 - なし ## 動作確認状況 - ローカルで確認
This commit is contained in:
parent
36716dc408
commit
c9124f8661
@ -87,8 +87,9 @@ const UserListPage: React.FC = (): JSX.Element => {
|
||||
|
||||
const users = useSelector(selectUserViews);
|
||||
const isLoading = useSelector(selectIsLoading);
|
||||
// ユーザーが第5階層であるかどうかを判定する
|
||||
const isTier5 = isApproveTier([TIERS.TIER5]);
|
||||
// ユーザーが第5階層であるかどうかを判定する(代行操作中は第5階層として扱う)
|
||||
const isTier5 =
|
||||
isApproveTier([TIERS.TIER5]) || delegationAccessToken !== null;
|
||||
|
||||
return (
|
||||
<>
|
||||
|
||||
@ -199,7 +199,9 @@ export class AccountsController {
|
||||
})
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(AuthGuard)
|
||||
@UseGuards(RoleGuard.requireds({ roles: [ADMIN_ROLES.ADMIN] }))
|
||||
@UseGuards(
|
||||
RoleGuard.requireds({ roles: [ADMIN_ROLES.ADMIN], delegation: true }),
|
||||
)
|
||||
@Get('me')
|
||||
async getMyAccount(@Req() req: Request): Promise<GetMyAccountResponse> {
|
||||
const accessToken = retrieveAuthorizationToken(req);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user