-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add invite event host button on user management page #2123
base: dev
Are you sure you want to change the base?
Conversation
Adds invite event host functionality button temp
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
|
Adds invite event host functionality button temp
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. |
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: