Skip to content

Commit

Permalink
Restore legacy uuGroupmembers rule
Browse files Browse the repository at this point in the history
It is still used in Yoda-clienttools
  • Loading branch information
stsnel committed Oct 6, 2023
1 parent b3b5b72 commit d485227
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions uuGroup.r
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,25 @@ uuGroupGetDescription(*groupName, *description) {
}
}

# \brief Get a list of both manager and non-manager members of a group.
#
# This function ignores zone names, this is usually a bad idea.
#
# \deprecated Use uuGroupGetMembers(*groupName, *includeRo, *addTypePrefix, *members) instead
# Still in use in Yoda-clienttools
#
# \param[in] groupName
# \param[out] members a list of user names
#
uuGroupGetMembers(*groupName, *members) {
uuGroupGetMembers(*groupName, false, false, *m);
*members = list();
foreach (*member in *m) {
# Throw away the zone name for backward compat.
uuChop(*member, *name, *_, "#", true);
*members = cons(*name, *members);
}
}

# \brief Get a list of a group's members.
#
Expand Down

0 comments on commit d485227

Please sign in to comment.