From 233a4cb5fd7db54c6e312c105e70db949335d5a8 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 23 Mar 2009 15:09:54 -0400 Subject: Raise a more specific error when a user lacks the proper permissions. The info part of the message will contain details on what permission failed on what attribute. --- ipalib/errors.py | 4 ---- ipalib/errors2.py | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'ipalib') diff --git a/ipalib/errors.py b/ipalib/errors.py index 722de765..c27d85de 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -396,10 +396,6 @@ class DefaultGroup(ConfigurationError): """You cannot remove the default users group""" faultCode = 1025 -class InsufficientAccess(GenericError): - """You do not have permission to perform this task""" - faultCode = 1027 - class InvalidUserPrincipal(GenericError): """Invalid user principal""" faultCode = 1028 diff --git a/ipalib/errors2.py b/ipalib/errors2.py index 260a51e8..33db5ccf 100644 --- a/ipalib/errors2.py +++ b/ipalib/errors2.py @@ -475,6 +475,7 @@ class ACIError(AuthorizationError): """ errno = 2100 + format = _('Insufficient access: %(info)r') -- cgit