Merge commit 'origin/master'
authorroot <root@blitz.inria.fr>
Mon, 15 Nov 2010 22:50:02 +0000 (23:50 +0100)
committerroot <root@blitz.inria.fr>
Mon, 15 Nov 2010 22:50:02 +0000 (23:50 +0100)
Makefile
PLC/Methods/UpdatePersonTag.py
PLCAPI.spec

index 8355af5..30d76e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,6 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustees of Princeton University
 #
-# $Id$
-# $URL$
-#
 
 # python-pycurl and python-psycopg2 avail. from fedora 5
 # we used to ship our own version of psycopg2 and pycurl, for fedora4
index 804d17d..780b06d 100644 (file)
@@ -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 \
index 98236bb..1e98926 100644 (file)
@@ -1,7 +1,3 @@
-#
-# $Id$
-#
-
 %define url $URL$
 
 %define name PLCAPI