summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--addons/website/models/ir_ui_view.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/website/models/ir_ui_view.py b/addons/website/models/ir_ui_view.py
index b4237c74715..69022920a39 100644
--- a/addons/website/models/ir_ui_view.py
+++ b/addons/website/models/ir_ui_view.py
@@ -364,8 +364,7 @@ class View(models.Model):
else:
error = werkzeug.exceptions.Forbidden('website_visibility_password_required')
- # elif self.visibility == 'restricted_group' and self.groups_id: or if groups_id set from backend
- if self.visibility != 'password':
+ if self.visibility not in ('password', 'connected'):
try:
self._check_view_access()
except AccessError: