feat(12.1-01): cabana.ForbiddenError answers a refused write with 403
- hooks and bulk, record, toolbar and widget actions may return it - 403 forbidden with the localized message and field details; the write's transaction is rolled back; other errors stay the opaque 500 - form shows a refused save as a persistent banner and keeps the values; a refused delete is a toast - smoke tests, OpenAPI notes, dist, README, docs
This commit is contained in:
@@ -2662,7 +2662,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
"description": "also returned when controller code refuses the write; details may name fields"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
@@ -2767,7 +2767,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
"description": "also returned when controller code refuses the write; details may name fields"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
@@ -2892,7 +2892,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
"description": "also returned when controller code refuses the write; details may name fields"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
@@ -3820,7 +3820,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
"description": "also returned when controller code refuses the write; details may name fields"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
@@ -4032,7 +4032,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
"description": "also returned when controller code refuses the write; details may name fields"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
@@ -4156,7 +4156,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "Forbidden"
|
||||
"description": "also returned when controller code refuses the write; details may name fields"
|
||||
},
|
||||
"404": {
|
||||
"content": {
|
||||
|
||||
Reference in New Issue
Block a user