File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 493
493
" board"
494
494
board-id
495
495
" unshare"
496
- :rel-ids (list persona-user-id))))
496
+ :rel-ids (list persona-user-id)
497
+ :no-auto-add-user t )))
497
498
(r :disconnect sock)
498
499
(concatenate ' vector sync-ids share-sync-ids)))
499
500
508
509
(alet* ((sync-ids (do-delete-board-persona-link user-id board-id to-persona-id)))
509
510
(if delete-keychain-entries
510
511
(alet* ((to-user-id (gethash " user_id" to-persona))
511
- (keychain-sync (delete-keychain-tree to-user-id board-id)))
512
+ (keychain-sync (delete-keychain-tree user-id to-user-id board-id)))
512
513
(concatenate ' vector sync-ids keychain-sync))
513
514
sync-ids))))
514
515
; ; user must have at least read-only access to board to be considered for
Original file line number Diff line number Diff line change 128
128
(r :disconnect sock)
129
129
(finish future (length entries))))))))
130
130
131
- (adefun delete-keychain-tree (user-id board-id)
131
+ (adefun delete-keychain-tree (from-user-id user-id board-id)
132
132
" Grab a board's tree data (board, child boards, all notes contained therein)
133
133
and for each item we no longer have at least read access to, remove that
134
134
item's keychain entry (if it exists)."
159
159
(map ' list (lambda (k) (gethash " id" k)) keychain-entries)))))
160
160
(nil (r :run sock query))
161
161
(sync-records (map ' vector
162
- (lambda (ke) (make-sync-record user-id " keychain" (gethash " id" ke) " delete" ))
162
+ (lambda (ke) (make-sync-record from-user-id
163
+ " keychain"
164
+ (gethash " id" ke)
165
+ " delete"
166
+ :rel-ids (list user-id)
167
+ :no-auto-add-user t ))
163
168
keychain-entries))
164
169
(nil (insert-sync-records sync-records)))
165
170
; ; return the sync id(s)
You can’t perform that action at this time.
0 commit comments