Commit 964d2fd473ee3a14c565e0f682447d13d7cf45dc

Thomas de Grivel 2024-05-14T15:27:09

public access

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/controllers/admin/repository_controller.ex b/lib/kmxgit_web/controllers/admin/repository_controller.ex
index ae0a4ae..e0adb98 100644
--- a/lib/kmxgit_web/controllers/admin/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/admin/repository_controller.ex
@@ -102,7 +102,7 @@ defmodule KmxgitWeb.Admin.RepositoryController do
 
   def show(conn, params) do
     repo = RepositoryManager.get_repository!(params["id"])
-    public_access = RepositoryManager.public_access?(Repository.full_slug(repo))
+    public_access = GitManager.public_access?(Repository.full_slug(repo))
     |> RepositoryManager.put_disk_usage()
     conn
     |> assign(:members, Repository.members(repo))