diff roundup/hyperdb.py @ 8139:de58ff07890e permission-performance

Rename parameter of hasPermission Rename only_no_check to skip_permissions_with_check. Revert explicit no-properties check in Permission.searchable, this check is already taken care of by the _properties_dict check. Add a comment on what _properties_dict does.
author Ralf Schlatterbeck <rsc@runtux.com>
date Thu, 24 Oct 2024 09:19:25 +0200
parents 5a2b9435a04d
children b99e76e76496
line wrap: on
line diff
--- a/roundup/hyperdb.py	Wed Oct 23 17:46:05 2024 +0200
+++ b/roundup/hyperdb.py	Thu Oct 24 09:19:25 2024 +0200
@@ -1817,7 +1817,7 @@
         item_ids = self.filter(search_matches, filterspec, sort, group,
                                retired, exact_match_spec, limit, offset)
         check = sec.hasPermission
-        if check(permission, userid, cn, only_no_check = True):
+        if check(permission, userid, cn, skip_permissions_with_check = True):
             allowed = item_ids
         else:
             debug = self.db.config.RDBMS_DEBUG_FILTER

Roundup Issue Tracker: http://roundup-tracker.org/