summaryrefslogtreecommitdiff
path: root/designate/central/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'designate/central/service.py')
-rw-r--r--designate/central/service.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/designate/central/service.py b/designate/central/service.py
index 77334dd0..e9831e80 100644
--- a/designate/central/service.py
+++ b/designate/central/service.py
@@ -1211,6 +1211,8 @@ class Service(service.RPCService):
policy.check('share_zone', context, target)
+ self._is_valid_project_id(context.project_id)
+
if zone.tenant_id == shared_zone.target_project_id:
raise exceptions.BadRequest(
'Cannot share the zone with the zone owner.')