Add invite event host button on user management page#2123
Add invite event host button on user management page#2123mscanlan-git wants to merge 7 commits intodevfrom
Conversation
|
Thanks for working on this! There are a couple of problems I see with the implementation here:
Think of it this way: if it's a POST request, we know that the form was actually submitted by the given user ( So any view that does a
|
84e8b80 to
f5bf2ae
Compare
|
Thanks for your feedback, @bemoody.
I have since added this to the view.
I'm not sure either, it may be worth adding a new permission? I mainly copied the permission from the event_management function as it seemed the most relatable permission group to assign to this function. |
|
@mscanlan-git I think we probably want to create a permission specifically for the ability to invite hosts. You could do this by adding the permission to the Event model, e.g.: Some other notes:
|
|
Thanks @tompollard, many of these changes have been added.
I have added the migration file for this change, as well as add the decorator
For this, I added
This is the last bit I'm missing. I have tried numerous ways to enforce this, but the result seems to be binary each time (either the button is hidden for both event host and non-event host users, or vice versa). I committed the changes I made to add template tags, but I would like help as to how I can get this implemented conditionally. |
Adds invite event host functionality button temp
cleaned formatting
This PR partially addresses #2104 by adding a button to the user management page that is able to add a user to the event host permission group. I also added a pop-up after clicking the button to ensure the admin is committed to adding the user as an event host.
Two additional changes I plan to make to follow-up on this: