Added admin serializer for the event registrations
Short description
Added a separate admin serializer for the event registrations, in order to prevent data leaks. Also added an extra field to the events API to indicate whether a user has admin rights for a certain event.
Steps to use this feature
- Go to
/api/v1/events/[pk]/registrations
as normal user. - Notice the available information has been limited.
- Go to
/api/v1/events/[pk]/registrations
as organiser of that event (or superuser). - Notice extra information is available.
- Go to
/api/v1/events/[pk]/
. - Notice the
is_admin
field has been added.