aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-21 22:53:07 +0100
committerGravatar Chris Lovering <[email protected]>2021-10-03 14:03:23 +0100
commiteeb70eff84530ca0939ec94e1343b7ad6bd703b7 (patch)
tree846107b1e08850cbdc02eaff85dea69b03a9e991 /tests
parentpython-news escape fixes (#1822) (diff)
Allow helpers to edit their own nomination reason
This change will allow helpers to run the edit reason command in the Talentpool cog. To ensure that non-mod helpers can only edit their own reasons the interface for the reason command has been changed slightly. If nominee_or_nomination_id is a member or user, then the command edits the currently active nomination for that person. If it's an int, then use this to look up that nomination ID to edit. If no nominator is specified, assume the invoker is editing their own nomination reason. Otherwise, edit the reason from that specific nominator. Raise a permission error if a non-mod staff member invokes this command on a specific nomination ID, or with an nominator other than themselves.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions