Skip to content

Commit 65225e2

Browse files
authored
Merge pull request #174 from devforth/restricted-from-msg-change
fix: change restricted from create/edit message
2 parents 4f0adce + 03a4dd5 commit 65225e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/modules/restApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
10191019
const fieldName = column.name;
10201020
if (fieldName in record) {
10211021
if (!column.showIn?.create || column.backendOnly) {
1022-
return { error: `Field "${fieldName}" cannot be modified as it is restricted from creation`, ok: false };
1022+
return { error: `Field "${fieldName}" cannot be modified as it is restricted from creation (showIn.create is false, please set it to true)`, ok: false };
10231023
}
10241024
}
10251025
}
@@ -1115,7 +1115,7 @@ export default class AdminForthRestAPI implements IAdminForthRestAPI {
11151115
const fieldName = column.name;
11161116
if (fieldName in record) {
11171117
if (!column.showIn?.edit || column.editReadonly || column.backendOnly) {
1118-
return { error: `Field "${fieldName}" cannot be modified as it is restricted from editing` };
1118+
return { error: `Field "${fieldName}" cannot be modified as it is restricted from editing (showIn.edit is false, please set it to true)`, ok: false };
11191119
}
11201120
}
11211121
}

0 commit comments

Comments
 (0)