#4218 - Small performance optimisation and potential loop fixer

Identifier #4218
Issue type Trivial issue (does not break functionality)
Title Small performance optimisation and potential loop fixer
Status Completed
Handling member Chris Graham
Version 10.0.30
Addon core_cns
Description cns_implicit_usergroup hooks may check to see if their usergroup exists or not. Doing so may cause a loop, as listing usergroups will lookup the current members usergroups in order to know if they can un-hide hidden groups based on their membership. Finding a members usergroups in turn uses cns_implicit_usergroup hooks.

This loop, and also a small perf issue, can be fixed by tweaking the code.
Steps to reproduce

Funded? No
Commits

Fixed MANTIS-4218 (Small performance optimisation and potential loop fixer) (798c9129) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated