You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ak...@apache.org on 2026/05/16 05:56:00 UTC

(tooling-gofannon) branch main updated: Admin login for testing

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

andrewmusselman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-gofannon.git


The following commit(s) were added to refs/heads/main by this push:
     new 4b7807c  Admin login for testing
4b7807c is described below

commit 4b7807c6d1f913424500eb35f11670e059b24465
Author: Andrew Musselman <ak...@apache.org>
AuthorDate: Fri May 15 22:55:50 2026 -0700

    Admin login for testing
---
 webapp/packages/api/user-service/auth/providers/asf.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/webapp/packages/api/user-service/auth/providers/asf.py b/webapp/packages/api/user-service/auth/providers/asf.py
index 71de799..49459f7 100644
--- a/webapp/packages/api/user-service/auth/providers/asf.py
+++ b/webapp/packages/api/user-service/auth/providers/asf.py
@@ -195,8 +195,9 @@ class AsfProvider(AuthProvider):
 
         if user_info.uid in site_admins:
             return LoginAllow(site_admin=True)
-        if memberships:
-            return LoginAllow(site_admin=False)
+        # TODO: Admin-only for testing
+        # if memberships:
+        #     return LoginAllow(site_admin=False)
         return LoginDeny(
             reason=(
                 "Your apache.org account is valid, but you're not currently "


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org