Felipe Monteiro | 10e82fd | 2017-11-21 01:47:20 +0000 | [diff] [blame] | 1 | --- |
| 2 | features: |
| 3 | - | |
| 4 | Implemented a new method ``override_role`` in ``rbac_utils`` module, which |
| 5 | provides the exact same functionality as the now-deprecated ``switch_role`` |
| 6 | method, with one difference: ``override_role`` is a contextmanager which |
| 7 | provides better policy validation granularity. This means that immediately |
| 8 | after the contextmanager's code has executed, the role is switched back |
| 9 | to the admin role automatically. |
| 10 | deprecations: |
| 11 | - | |
| 12 | The ``switch_role`` method in ``rbac_utils`` module has been deprecated |
| 13 | and will be removed during the Rocky release cycle. |