forked from baron/baron-sso
ReBAC 고도화 및 애플리케이션 관리 시스템 통합 구현
This commit is contained in:
@@ -22,7 +22,7 @@ const RoleSwitcher: React.FC = () => {
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV === 'production') return null;
|
||||
if (import.meta.env.MODE === 'production') return null;
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
@@ -43,7 +43,7 @@ const RoleSwitcher: React.FC = () => {
|
||||
<div style={{ fontWeight: 'bold', borderBottom: '1px solid #444', paddingBottom: '4px', marginBottom: '4px' }}>
|
||||
🛠 DEV Role Switcher
|
||||
</div>
|
||||
{(['super_admin', 'tenant_admin', 'user'] as const).map(role => (
|
||||
{(['super_admin', 'tenant_admin', 'rp_admin', 'tenant_member'] as const).map(role => (
|
||||
<button
|
||||
key={role}
|
||||
onClick={() => switchRole(role)}
|
||||
@@ -58,7 +58,7 @@ const RoleSwitcher: React.FC = () => {
|
||||
transition: 'background 0.2s'
|
||||
}}
|
||||
>
|
||||
{role.toUpperCase()} {currentRole === role ? '✅' : ''}
|
||||
{role.toUpperCase().replace('_', ' ')} {currentRole === role ? '✅' : ''}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user