Skip to content

Commit 4ac572c

Browse files
authored
fix: guard grid quick edit permissions (baserow#5223)
1 parent 5fe8859 commit 4ac572c

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "bug",
3+
"message": "Fix grid field quick edit crashing when the field update context is unavailable because the user lacks field update permission.",
4+
"issue_origin": "github",
5+
"issue_number": 5216,
6+
"domain": "database",
7+
"bullet_points": [],
8+
"created_at": "2026-04-16"
9+
}

web-frontend/modules/database/components/view/grid/GridViewFieldType.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,13 @@ export default {
397397
)
398398
)
399399
},
400+
canUpdateField() {
401+
return this.$hasPermission(
402+
'database.table.field.update',
403+
this.field,
404+
this.database.workspace.id
405+
)
406+
},
400407
synced() {
401408
if (!this.table.data_sync) {
402409
return false
@@ -431,7 +438,10 @@ export default {
431438
this.$refs.context.hide()
432439
},
433440
async handleQuickEdit() {
434-
if (this.readOnly) return false
441+
if (this.readOnly || !this.canUpdateField || !this.$refs.context) {
442+
return false
443+
}
444+
435445
await this.$refs.context.toggle(
436446
this.$refs.quickEditLink,
437447
'bottom',

0 commit comments

Comments
 (0)