Acceptance criteria
Given that I have the event organiser role
When I create an event using the REST endpoint
AND the selected namespace is in the list configured in community configuration (T387966)
Then the event will be created successfully.
When I create or edit an event using the REST endpoint
AND the selected namespace is NOT in the list configured in community configuration (See: T387966)
Then the event will be NOT be updated successfully.
AND an error will returned with the text: The event page must be in one of the permitted namespaces.
When I edit an event using the REST endpoint
AND the event page namespace is NOT in the list of allowed namespaces
AND I do NOT modify the event page
Then the event will be edited successfully
When I edit an event using the REST endpoint
AND the event page namespace is NOT in the list of allowed namespaces
AND I modify the event page
AND the new event page is not in a permitted namespace
Then the event will be NOT be edited successfully
AND an error will be returned with the text: The event page must be in one of the permitted namespaces.




