Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Allow anonymouse guest peer to invert sustain
Browse files Browse the repository at this point in the history
  • Loading branch information
corytheboyd committed Mar 18, 2021
1 parent c81651c commit 2945e05
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/server/src/lib/api/v1/sessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ export const sessions = (): Router => {
res.end();
});

router.post("/:id/setSustainInverted", requiresAuth(), async (req, res) => {
/**
* @note Auth not required, so that the guest peer can also invert their
* sustain on/off state if they do not have an account.
* */
router.post("/:id/setSustainInverted", async (req, res) => {
const userId = getCurrentUserId(req);
const session = await getSession(req.params.id);

Expand Down

0 comments on commit 2945e05

Please sign in to comment.