mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) refactor assertCanMaybeApplyUserActions
Summary: This refactors assertCanMaybeApplyUserActions for clarity. Test Plan: existing tests pass, added test Reviewers: dsagal, jarek Reviewed By: dsagal, jarek Subscribers: jarek Differential Revision: https://phab.getgrist.com/D3637
This commit is contained in:
@@ -1791,7 +1791,7 @@ export class ActiveDoc extends EventEmitter {
|
||||
if (options?.bestEffort) {
|
||||
actions = await this._granularAccess.prefilterUserActions(docSession, actions);
|
||||
}
|
||||
await this._granularAccess.assertCanMaybeApplyUserActions(docSession, actions);
|
||||
await this._granularAccess.checkUserActions(docSession, actions);
|
||||
|
||||
// Create the UserActionBundle.
|
||||
const action: UserActionBundle = {
|
||||
|
||||
Reference in New Issue
Block a user