mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Give more info on virtual command access denial
The current error message upon a virutal command access denial does not give any information about the virtual operation that was prohibited. Add more information to the ACIError message. Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
committed by
Jan Cholasta
parent
d7be2fd1bd
commit
6f8b0ed4fa
@@ -62,7 +62,7 @@ class VirtualCommand(Command):
|
||||
try:
|
||||
if not ldap.can_write(operationdn, "objectclass"):
|
||||
raise errors.ACIError(
|
||||
info=_('not allowed to perform this command'))
|
||||
info=_('not allowed to perform operation: %s') % operation)
|
||||
except errors.NotFound:
|
||||
raise errors.ACIError(info=_('No such virtual command'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user