mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Include helper columns in ACL rules
Summary: Extend the way ACL resources are read in the server so that if a rule applies to a specific column then that rule also applies to helper columns belonging to that column, as well as helper columns belonging to fields which display that column. This is particularly intended for display columns of reference columns, but it also applies to conditional formatting rule columns. Test Plan: Added a server test Reviewers: paulfitz, jarek Reviewed By: paulfitz, jarek Differential Revision: https://phab.getgrist.com/D3628
This commit is contained in:
@@ -110,7 +110,7 @@ export class TableData extends ActionDispatcher implements SkippableRows {
|
||||
|
||||
reassignArray(this._rowIdCol, rowIds);
|
||||
for (const colData of this._colArray) {
|
||||
const values = colValues[colData.colId];
|
||||
const values = colData.colId === 'id' ? rowIds : colValues[colData.colId];
|
||||
// If colId is missing from tableData, use an array of default values. Note that reusing
|
||||
// default value like this is only OK because all default values we use are primitive.
|
||||
reassignArray(colData.values, values || this._rowIdCol.map(() => colData.defl));
|
||||
|
||||
Reference in New Issue
Block a user