forked from baron/baron-sso
테넌트 비소속 개발자 권한 신청/부여 가능
This commit is contained in:
@@ -201,17 +201,11 @@ export default function DeveloperGrantsPage() {
|
||||
);
|
||||
return;
|
||||
}
|
||||
const tenantId = selectedUserDetail?.tenant?.id?.trim() || "";
|
||||
if (!tenantId) {
|
||||
toast(
|
||||
t(
|
||||
"msg.dev.grants.tenant_required",
|
||||
"선택한 사용자의 현재 테넌트 정보를 확인할 수 없습니다.",
|
||||
),
|
||||
"error",
|
||||
);
|
||||
return;
|
||||
}
|
||||
const tenantId =
|
||||
selectedUserDetail?.tenant?.id?.trim() ||
|
||||
selectedUserDetail?.tenantSlug?.trim() ||
|
||||
selectedUserDetail?.companyCode?.trim() ||
|
||||
"";
|
||||
|
||||
createGrantMutation.mutate({
|
||||
userId: selectedUser.id,
|
||||
@@ -382,7 +376,9 @@ export default function DeveloperGrantsPage() {
|
||||
selectedUserDetail?.tenant?.name ||
|
||||
selectedUserDetail?.tenantSlug ||
|
||||
selectedUserDetail?.companyCode ||
|
||||
""
|
||||
(selectedUser && !isSelectedUserDetailLoading
|
||||
? t("ui.common.na", "없음")
|
||||
: "")
|
||||
}
|
||||
readOnly
|
||||
placeholder={
|
||||
@@ -548,10 +544,10 @@ export default function DeveloperGrantsPage() {
|
||||
<TableCell>
|
||||
<div className="space-y-1">
|
||||
<div className="font-medium">
|
||||
{grant.organization || grant.tenantId}
|
||||
{grant.organization || grant.tenantId || t("ui.common.na", "없음")}
|
||||
</div>
|
||||
<div className="font-mono text-xs text-muted-foreground">
|
||||
{grant.tenantId}
|
||||
{grant.tenantId || t("ui.common.na", "없음")}
|
||||
</div>
|
||||
</div>
|
||||
</TableCell>
|
||||
|
||||
Reference in New Issue
Block a user