This PR fixes several bugs related to creating, updating, and deleting event surveys. updateSurvey and deleteSurvey now check if the user is an event admin and surveys created or updated using the admin APIs are now marked with type admin.
Resolves #23
Review Time Estimate
Please give your idea of how soon this pull request needs to be reviewed by selecting one of the options below. This can be based on the criticality of the issue at hand and/or other relevant factors.
[x] Immediately
[ ] Within a week
[ ] When possible
Type of changes
Please select a relevant option:
[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).
[ ] Other (any another change that does not fall in one of the above categories.)
Checklist:
Please select all applicable options:
[x] I have signed the Rokwire Contributor License Agreement (CLA). (Any contributor who is not an employee of the University of Illinois whose official duties include contributing to the Rokwire software, or who is not paid by the Rokwire project, needs to sign the CLA before their contribution can be accepted.)
Description
This PR fixes several bugs related to creating, updating, and deleting event surveys.
updateSurvey
anddeleteSurvey
now check if the user is an event admin and surveys created or updated using the admin APIs are now marked with typeadmin
.Resolves #23
Review Time Estimate
Please give your idea of how soon this pull request needs to be reviewed by selecting one of the options below. This can be based on the criticality of the issue at hand and/or other relevant factors.
Type of changes
Please select a relevant option:
Checklist:
Please select all applicable options: