mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Hide id column in Access Rules
Summary: The id column was a possible option for rulesets, which was a bug. Test Plan: Browser tests. Reviewers: paulfitz Reviewed By: paulfitz Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D3817
This commit is contained in:
parent
efd92c6c2a
commit
8a6962d3e6
@ -507,7 +507,8 @@ export class AccessRules extends Disposable {
|
||||
|
||||
// Returns a list of valid colIds for the given table, or undefined if the table isn't valid.
|
||||
public getValidColIds(tableId: string): string[]|undefined {
|
||||
return this._aclResources.get(tableId)?.colIds.filter(id => !isHiddenCol(id)).sort();
|
||||
return this._aclResources.get(tableId)?.colIds.filter(id =>
|
||||
!isHiddenCol(id) && id !== 'id').sort();
|
||||
}
|
||||
|
||||
// Get rules to use for seeding any new set of table/column rules, e.g. to give owners
|
||||
|
Loading…
Reference in New Issue
Block a user