mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 20:54:11 +00:00
fix(tenants): make SMTP password field visible in admin panel
neverReadable blocked the field everywhere including the admin UI. Changed to allow read for authenticated users only, so the field shows in admin but stays hidden in unauthenticated API responses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
9bb041bd7c
commit
0c222b9aa9
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ export const Tenants: CollectionConfig = {
|
||||||
description: 'Leer lassen um bestehendes Passwort zu behalten',
|
description: 'Leer lassen um bestehendes Passwort zu behalten',
|
||||||
},
|
},
|
||||||
access: {
|
access: {
|
||||||
read: neverReadable, // Passwort nie in API-Response
|
read: ({ req }) => !!req.user, // Admin kann lesen, API ohne Auth nicht
|
||||||
},
|
},
|
||||||
hooks: {
|
hooks: {
|
||||||
beforeChange: [
|
beforeChange: [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue