-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YDA-4101: add ability to create external user with custom creator #340
Conversation
# \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 | ||
# | ||
# \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); | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added back this function so that --delete and --allow-update options in yoda-clienttools would still work. Otherwise we do not use this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good in general 👍 can you add an additional authorization check in case someone adds a group member on behalf of someone else? This function should only be available to rodsadmins, rather than any group admin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, LGTM 👍
Can you squash the commits to the Github Workflow before merging?
53662fa
to
dafe7da
Compare
dafe7da
to
b14bfe1
Compare
Requires UtrechtUniversity/yoda-clienttools#5