Browse Source

Merge "Authenticate before Authorization" into stable/rocky

changes/67/723067/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
daa107d2c7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      horizon/base.py

+ 3
- 3
horizon/base.py View File

@@ -564,13 +564,13 @@ class Dashboard(Registry, HorizonComponent):
urlpatterns.append(
url(r'', _wrapped_include(default_panel._decorated_urls)))

# Require login if not public.
if not self.public:
_decorate_urlconf(urlpatterns, require_auth)
# Apply access controls to all views in the patterns
permissions = getattr(self, 'permissions', [])
_decorate_urlconf(urlpatterns, require_perms, permissions)
_decorate_urlconf(urlpatterns, _current_component, dashboard=self)
# Require login if not public.
if not self.public:
_decorate_urlconf(urlpatterns, require_auth)

# Return the three arguments to django.conf.urls.include
return urlpatterns, self.slug, self.slug


Loading…
Cancel
Save