From ebd3765a454b38470905ff84284569e082b3fb07 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 20 Mar 2026 21:39:59 +0800 Subject: [PATCH] bugfix --- rbac/userperm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rbac/userperm.py b/rbac/userperm.py index c6b162a..99a33ce 100644 --- a/rbac/userperm.py +++ b/rbac/userperm.py @@ -33,9 +33,9 @@ order by c.orgtypeid, c.name""" recs = await sor.sqlExe(sql_all, {}) for r in recs: k = 'anonymous' - if k == 'any.any': + if r.name == 'any': k = 'any' - if r.orgtypeid: + elif r.orgtypeid: k = f'{r.orgtypeid}.{r.name}' arr = self.rp_caches.get(k, []) arr.append(r.path)