Roundup Tracker - Issues

Message8310

Author rouilj
Recipients rouilj, schlatterbeck
Date 2025-01-20.00:29:49
Message-id <1737332989.18.0.196666473816.issue2550962@roundup-tracker.org>
In-reply-to
changeset:   8294:302c797756e6
tag:         tip
user:        John Rouillard <rouilj@ieee.org>
date:        Sun Jan 19 19:29:17 2025 -0500
files:       roundup/security.py
description:
fix: issue2550962. remove assert in Role::hasPermission

issue2550962 - Check uses of assert in roundup code.

An assert was used to make sure that a classname always accompoanied
an itemid in hasPermission. The Security::hasPErmission has an if
clause that does the same check and raises a ValueError.
History
Date User Action Args
2025-01-20 00:29:49rouiljsetmessageid: <1737332989.18.0.196666473816.issue2550962@roundup-tracker.org>
2025-01-20 00:29:49rouiljsetrecipients: + rouilj, schlatterbeck
2025-01-20 00:29:49rouiljlinkissue2550962 messages
2025-01-20 00:29:49rouiljcreate