# HG changeset patch # User John Rouillard # Date 1769631662 18000 # Node ID 0e712d67a783d192425976031e95546756398e31 # Parent 8c265e8bfc5acd0b4c01c97b978be64484472a8c doc: fix typo and error in check command change or -> for In check command replace: if user.organisation == issue.organisation: return True with return user.organisation == issue.organisation which returns a real False (not just a falsy None) and is more pythonic than if X: return True, just return X if False is a valid value. diff -r 8c265e8bfc5a -r 0e712d67a783 doc/reference.txt --- a/doc/reference.txt Tue Jan 27 22:17:17 2026 -0500 +++ b/doc/reference.txt Wed Jan 28 15:21:02 2026 -0500 @@ -1820,15 +1820,15 @@ ``issue`` class and the ``user`` class include a reference to an ``organization`` class. Users are permitted to view only those issues that are associated with their respective organizations. A - check function or this could look like:: + check function for this could look like:: def view_issue(db, userid, itemid): user = db.user.getnode(userid) if not user.organisation: return False issue = db.issue.getnode(itemid) - if user.organisation == issue.organisation: - return True + return user.organisation == issue.organisation + The corresponding ``filter`` function::