From 12982974c0fa872549b3ad79b6365c6c1cfcb5a6 Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Tue, 22 Jul 2025 23:11:05 +0000 Subject: [PATCH] pulp-login: change roles/ to groups/ we still need an api endpoint to check whether we're logged in or not, but `/pulp/api/v3/roles/` requires the user to be admin. Changing to `/pulp/api/v3/groups/`, as per #198. (And don't force the db to do work, settle for 0 items.) Closes #198 --- src/api/pulp-login.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/api/pulp-login.ts b/src/api/pulp-login.ts index 319fa878..e5e9f170 100644 --- a/src/api/pulp-login.ts +++ b/src/api/pulp-login.ts @@ -4,6 +4,9 @@ const base = new PulpAPI(); export const PulpLoginAPI = { try: (username, password) => - // roles = any api that will always be there and requires auth - base.http.get(`roles/`, { auth: { username, password } }), + // groups = any api that will always be there and requires auth + base.http.get(`groups/`, { + auth: { username, password }, + params: { limit: 0, offset: 0 }, + }), };