From: Tony Mack Date: Wed, 10 Nov 2010 21:06:11 +0000 (-0500) Subject: Fix typo X-Git-Tag: plcapi-5.0-19~61 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=dc7f532351ff9a9fa145e9a2483be89086e0ae04 Fix typo --- diff --git a/PLC/Methods/UpdatePersonTag.py b/PLC/Methods/UpdatePersonTag.py index 1cfc6ac..804d17d 100644 --- a/PLC/Methods/UpdatePersonTag.py +++ b/PLC/Methods/UpdatePersonTag.py @@ -53,7 +53,7 @@ class UpdatePersonTag(Method): # check permission : it not admin, is the user affiliated with the right person if 'admin' not in self.caller['roles']: # check caller is affiliated with this person's person - if not self.call.can_update(person): + if not self.caller.can_update(person): raise PLCPermissionDenied, "Not a member of the person's persons: %s"%person['person_ids'] required_min_role = person_tag['min_role_id']