Commit e033e8e
committed
fix(recording): create the recording folder as the owning user
The recording and transcript files are created with the owner as the active
user, but the folder that holds them is created in getRecordingFolder()
outside of that context. For the first recording of a conversation the
folder therefore appears in the activity stream as created by "remote
account", next to the file that is attributed correctly.
Move the user switch into a small runAsUser() helper and use it for the
folder lookup as well, so both the folder and the file are attributed to
the owner.
Signed-off-by: Baki Burak Öğün <burak@burakogun.com>1 parent bdcf8bd commit e033e8e
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
635 | 645 | | |
636 | 646 | | |
637 | | - | |
| 647 | + | |
638 | 648 | | |
639 | 649 | | |
640 | 650 | | |
641 | 651 | | |
642 | 652 | | |
643 | 653 | | |
644 | | - | |
| 654 | + | |
645 | 655 | | |
646 | 656 | | |
647 | 657 | | |
| |||
652 | 662 | | |
653 | 663 | | |
654 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
655 | 675 | | |
656 | 676 | | |
657 | 677 | | |
| |||
0 commit comments