Commit f849ea3e5fbd338eae88590b9b6c14cfbf00513a

Thomas de Grivel 2024-05-14T15:31:16

public access

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