You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@security.apache.org by en...@apache.org on 2026/10/02 12:07:08 UTC

(security-dash) branch frontend updated: update authz and diagnostics

This is an automated email from the ASF dual-hosted git repository.

raboof pushed a commit to branch frontend
in repository https://gitbox.apache.org/repos/asf/security-dash.git


The following commit(s) were added to refs/heads/frontend by this push:
     new c943e4f  update authz and diagnostics
c943e4f is described below

commit c943e4fa9f146297e0fc741666cbd69e430b3eb1
Author: Arnout Engelen <ar...@bzzt.net>
AuthorDate: Fri Oct 2 14:06:45 2026 +0200

    update authz and diagnostics
---
 app/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/__init__.py b/app/__init__.py
index 526c89e..e8798ad 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -111,8 +111,11 @@ async def _require_authorization_for(project: str) -> utils.UserSession:
     if not user.is_authenticated:
         raise asfquart.auth.AuthenticationFailed(asfquart.auth.Requirements.E_NOT_LOGGED_IN)
     pmcs = user.accessible_pmcs
+    print(user)
+    print(pmcs)
     if (not _asf_group_acl(project, pmcs, user.projects)
         and not _asf_group_acl("security", pmcs, user.projects)
+        and not _asf_group_acl("board", pmcs, user.projects)
         # the Incubator PMC oversees its podlings
         and not (project in config.get().pmcs_in_incubator
                  and _asf_group_acl("incubator", pmcs, user.projects))):