feat(master-data): make Main type of activity read-only
This doctype is now populated exclusively from master_data JSON via the hash-diff sync, so block create/write/delete in the UI and API by dropping those permissions. The sync writes at the DB level so it is unaffected. Also marks option_name read_only and drops allow_rename. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
eb392640cd
commit
1f43e8e037
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"actions": [],
|
"actions": [],
|
||||||
"allow_rename": 1,
|
|
||||||
"creation": "2025-01-09 14:43:12.245054",
|
"creation": "2025-01-09 14:43:12.245054",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"engine": "InnoDB",
|
"engine": "InnoDB",
|
||||||
|
|
@ -11,7 +10,8 @@
|
||||||
{
|
{
|
||||||
"fieldname": "option_name",
|
"fieldname": "option_name",
|
||||||
"fieldtype": "Text",
|
"fieldtype": "Text",
|
||||||
"label": "Option Name"
|
"label": "Option Name",
|
||||||
|
"read_only": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
|
|
@ -23,16 +23,13 @@
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
{
|
{
|
||||||
"create": 1,
|
|
||||||
"delete": 1,
|
|
||||||
"email": 1,
|
"email": 1,
|
||||||
"export": 1,
|
"export": 1,
|
||||||
"print": 1,
|
"print": 1,
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"report": 1,
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"share": 1,
|
"share": 1
|
||||||
"write": 1
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"search_fields": "option_name",
|
"search_fields": "option_name",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue