Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix the an Unexpected API Error issue in flavor API
The flavors.add_flavor_access and flavors.remove_flavor_access require admin privilege in DB level but the policy doesn't require it and the exception isn't catched in the api. So the bug arise. The privilege check in DB level is not necessary, but it need more tests and can be remove in other patch or blue-print. This use extension_authorizer instead of soft_extension_authorizer in the action of flavor_access, in order to raise exception. Closes-Bug: #1217679 DocImpact Change-Id: I0b1231f47fffaf99f330de02956bfe8d7cd4b920
- Loading branch information
ivan-zhu
committed
Sep 27, 2013
1 parent
86c97ff
commit d6214f1
Showing
6 changed files
with
118 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters