Fix jwt-token
This commit is contained in:
@@ -431,6 +431,13 @@ const SecuritySettings = ({ tenantConfig, onRefresh }) => {
|
||||
|
||||
const canEdit = hasPermission(user?.role, 'security.edit');
|
||||
|
||||
console.log('🔐 SecuritySettings Debug:', {
|
||||
userRole: user?.role,
|
||||
canEdit: canEdit,
|
||||
tenantConfig: tenantConfig,
|
||||
securitySettings: securitySettings
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (tenantConfig) {
|
||||
setSecuritySettings({
|
||||
@@ -498,7 +505,12 @@ const SecuritySettings = ({ tenantConfig, onRefresh }) => {
|
||||
<div className="flex justify-between items-center mb-6">
|
||||
<h3 className="text-lg leading-6 font-medium text-gray-900">Security Settings</h3>
|
||||
<button
|
||||
onClick={handleSave}
|
||||
onClick={() => {
|
||||
console.log('🔘 Save button clicked!');
|
||||
console.log('🔘 canEdit:', canEdit);
|
||||
console.log('🔘 saving:', saving);
|
||||
handleSave();
|
||||
}}
|
||||
disabled={saving || !canEdit}
|
||||
className="bg-primary-600 text-white px-4 py-2 rounded-md hover:bg-primary-700 disabled:opacity-50"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user