7b754ae390
When user is not authorized to perform operations defined in policy file, it should return a 403 error. The 500 error is incorrect. This patch do the following changes: 1. Raise a PolicyNotAuthorized 403 exception when normal user without admin privilege run command 'magnum service-list'. 2. Remove unnecessary hacking rule M301 'decorator must be the first decorator on a method'. 3. Fix failed enforcement test cases introduced by 403 PolicyNotAuthorized exception. Change-Id: Ie5a7d138cdb8b226686c189ae86f251c0a1329c8 Closes-Bug: #1520311 |
||
---|---|---|
.. | ||
__init__.py | ||
checks.py |