]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard_v2: Fix bug in AuthRequired decorator
authorRicardo Dias <rdias@suse.com>
Tue, 30 Jan 2018 16:30:57 +0000 (16:30 +0000)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:03 +0000 (13:07 +0000)
commit77e5bf4f5f1ca5efe6e1d8ea80df200df7c2dfa0
tree2ecbad50d1489c1753c117f88f2447f77022a124
parentf416efcf8caa8bfa478575ee88bddd2d27f259c3
mgr/dashboard_v2: Fix bug in AuthRequired decorator

This PR fixes the fllowing bug:
When a subclass of `RESTController` was decorated with the `AuthRequired`
decorator, then all controllers that were also subclasses of
`RESTController` were automatically required authentication when accessing
them.

Signed-off-by: Ricardo Dias <rdias@suse.com>
src/pybind/mgr/dashboard_v2/tools.py