mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🗃️ refactor: File Access via Agent; Deny Deletion if not Editor, Allow Viewer (#9357)
This commit is contained in:
parent
7742b18c9c
commit
8772b04d1d
3 changed files with 80 additions and 18 deletions
|
|
@ -185,6 +185,7 @@ router.delete('/', async (req, res) => {
|
|||
role: req.user.role,
|
||||
fileIds: nonOwnedFileIds,
|
||||
agentId: req.body.agent_id,
|
||||
isDelete: true,
|
||||
});
|
||||
|
||||
for (const file of nonOwnedFiles) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue