mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-08-29 18:31:33 +00:00
fix: allow sharing empty folders (#1096)
This commit is contained in:
@@ -352,8 +352,6 @@ router.post(
|
|||||||
* description: Folder shared successfully.
|
* description: Folder shared successfully.
|
||||||
* 400:
|
* 400:
|
||||||
* description: Invalid request body.
|
* description: Invalid request body.
|
||||||
* 404:
|
|
||||||
* description: Folder has no hosts.
|
|
||||||
* 500:
|
* 500:
|
||||||
* description: Failed to share folder.
|
* description: Failed to share folder.
|
||||||
*/
|
*/
|
||||||
@@ -415,9 +413,6 @@ router.post(
|
|||||||
userId,
|
userId,
|
||||||
folder,
|
folder,
|
||||||
);
|
);
|
||||||
if (hostsInFolder.length === 0) {
|
|
||||||
return res.status(404).json({ error: "Folder has no hosts" });
|
|
||||||
}
|
|
||||||
|
|
||||||
const expiresAt = expiryFromDuration(durationHours);
|
const expiresAt = expiryFromDuration(durationHours);
|
||||||
const rbacAccessRepository = createCurrentRbacAccessRepository();
|
const rbacAccessRepository = createCurrentRbacAccessRepository();
|
||||||
|
|||||||
Reference in New Issue
Block a user