mirror of
https://github.com/openkmip/pykmip
synced 2025-12-15 07:43:26 +00:00
Merge pull request #438 from OpenKMIP/feat/update-access-denied-error
Raise PermissionDenied on access control violations
This commit is contained in:
@@ -938,7 +938,7 @@ class KmipEngine(object):
|
||||
operation
|
||||
)
|
||||
if not is_allowed:
|
||||
raise exceptions.ItemNotFound(
|
||||
raise exceptions.PermissionDenied(
|
||||
"Could not locate object: {0}".format(uid)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user