Commit 89db9023e5d4cd06bb0aeafa8c3f4eecba3f1efd

Thomas de Grivel 2024-05-14T18:36:44

fix new repository page

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index a38534a..600b608 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -268,6 +268,7 @@ defmodule KmxgitWeb.RepositoryController do
         |> assign(:action, action)
         |> assign(:changeset, changeset)
         |> assign(:owner, slug.user)
+        |> assign(:public_access, false)
         |> render("new.html")
       else
         org = slug.organisation
@@ -278,6 +279,7 @@ defmodule KmxgitWeb.RepositoryController do
           |> assign(:changeset, changeset)
           |> assign(:current_organisation, org)
           |> assign(:owner, org)
+          |> assign(:public_access, false)
           |> render("new.html")
         else
           not_found(conn)