This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add third_party module callbacks to check if a user can delete a room and deactivate a user #12028
Add third_party module callbacks to check if a user can delete a room and deactivate a user #12028
Changes from 7 commits
d05140a
357542c
5884cb5
19364df
6d89207
23fd920
e66329f
6c439bb
c2ce996
c64b955
a3c2667
e72024b
98a05d0
f924cf1
68c068a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Thinking about this a bit more, is there a reason we need to pass the
Requester
down to the module instead of just the user ID? If not I'd prefer if we passed the user ID for consistency (I knowon_create_room
already passes aRequester
to modules, we'll probably need to fix it later).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.
Oh, it was mostly so you could tell if the requester was an admin or not by inspecting the object. I can do an
is_admin
flag (or maybe there is a Module API to determine this) but I was going for convenience.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.
Removed Requester, second parameter is now either the admin's user id, or None if no admin made the request.
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.
Having thought about it...I can't think of a reason to care who the admin is... going to use
by_admin