Return "false" instead of throwing an exception when the user doesn't have permission to execute an operation
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/756c5ceb Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/756c5ceb Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/756c5ceb Branch: refs/heads/sf-plugins Commit: 756c5ceb4b7a9a3cf0bd167e0bbaf644401ca4d2 Parents: 8cd2827 Author: Mike Tutkowski <[email protected]> Authored: Tue Jul 14 20:36:53 2015 -0600 Committer: Mike Tutkowski <[email protected]> Committed: Fri Sep 18 19:28:21 2015 -0600 ---------------------------------------------------------------------- .../org/apache/cloudstack/solidfire/ApiSolidFireServiceImpl2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/756c5ceb/plugins/api/solidfire/src/org/apache/cloudstack/solidfire/ApiSolidFireServiceImpl2.java ---------------------------------------------------------------------- diff --git a/plugins/api/solidfire/src/org/apache/cloudstack/solidfire/ApiSolidFireServiceImpl2.java b/plugins/api/solidfire/src/org/apache/cloudstack/solidfire/ApiSolidFireServiceImpl2.java index 58ebc4b..b626c67 100644 --- a/plugins/api/solidfire/src/org/apache/cloudstack/solidfire/ApiSolidFireServiceImpl2.java +++ b/plugins/api/solidfire/src/org/apache/cloudstack/solidfire/ApiSolidFireServiceImpl2.java @@ -494,7 +494,7 @@ public class ApiSolidFireServiceImpl2 extends AdapterBase implements APIChecker, return true; } - throw new PermissionDeniedException("Insufficient permissions to perform this action"); + return false; } @Override
