From bc700eb09db69f89196b119b3e2720a725b455ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <git@minelli.me>
Date: Tue, 26 Mar 2024 21:21:20 +0100
Subject: [PATCH] AssignmentCreate => Fix bug with double uri encoding

---
 .../commander/assignment/subcommands/AssignmentCreateCommand.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts b/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts
index 5124242..1bff535 100644
--- a/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts
+++ b/NodeApp/src/commander/assignment/subcommands/AssignmentCreateCommand.ts
@@ -56,7 +56,7 @@ class AssignmentCreateCommand extends CommanderCommand {
                 this.templateIdOrNamespace = Toolbox.urlToPath(this.templateIdOrNamespace);
             }
 
-            if ( !await DojoBackendManager.checkTemplateAccess(encodeURIComponent(this.templateIdOrNamespace)) ) {
+            if ( !await DojoBackendManager.checkTemplateAccess(this.templateIdOrNamespace) ) {
                 throw new Error();
             }
         }
-- 
GitLab