From: Barış Metin Date: Thu, 11 Nov 2010 13:35:04 +0000 (+0100) Subject: also fix error message X-Git-Tag: plcapi-5.0-19~60 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=6bc051e5a436ec8f0deb0aca2e5de9e6ea78f6cf;p=plcapi.git also fix error message --- diff --git a/PLC/Methods/UpdatePersonTag.py b/PLC/Methods/UpdatePersonTag.py index 804d17d..780b06d 100644 --- a/PLC/Methods/UpdatePersonTag.py +++ b/PLC/Methods/UpdatePersonTag.py @@ -54,7 +54,9 @@ class UpdatePersonTag(Method): if 'admin' not in self.caller['roles']: # check caller is affiliated with this person's person if not self.caller.can_update(person): - raise PLCPermissionDenied, "Not a member of the person's persons: %s"%person['person_ids'] + raise PLCPermissionDenied, "person_id %s doesn't have access to person_tag_id %s" % ( + person['person_id'], + person_tag['person_tag_id']) required_min_role = person_tag['min_role_id'] if required_min_role is not None and \