[elbe-devel] [PATCH 6/8] elbepack: projectmanager: stop validating is_admin()

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 13 13:31:54 CEST 2024


The usermanagement of elbe is being removed.
A first step will remove the admin handling,
so stop validating the admin role.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/projectmanager.py | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/elbepack/projectmanager.py b/elbepack/projectmanager.py
index 6c4b8602a536..1ab4b65e0f0a 100644
--- a/elbepack/projectmanager.py
+++ b/elbepack/projectmanager.py
@@ -327,10 +327,6 @@ class ProjectManager:
             del self.userid2project[userid]
 
     def _check_project_permission(self, userid, builddir):
-        if self.db.is_admin(userid):
-            # Admin may access all projects
-            return
-
         if self.db.get_owner_id(builddir) != userid:
             # Project of another user, deny access
             raise PermissionDenied(builddir)

-- 
2.46.0



More information about the elbe-devel mailing list