Commit 802973fb authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[controller] hide inactive/deleted groups/projects in listings

parent 88c55a86
......@@ -161,9 +161,11 @@ class TableController(BaseController):
def list(self):
isAdmin = cherrypy.request.user.serveradmin
return [
call_mix(entry.to_dict, user=cherrypy.request.user)
for entry in self._rf("list", self._table.all(DB()))
if isAdmin or getattr(entry, "status", 1) == 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment