# HG changeset patch # User Sandrine Ribeau # Date 1260197151 28800 # Node ID dee7af82beff2df3bde74d426b3783b0ef4bd60e # Parent c52619c738a55d2d8c7d1c337686c62ada86d4e4 should return item type not relation diff -r c52619c738a5 -r dee7af82beff schema.py --- a/schema.py Mon Dec 07 06:39:35 2009 -0800 +++ b/schema.py Mon Dec 07 06:45:51 2009 -0800 @@ -425,11 +425,11 @@ def has_perm(self, session, action, **kwargs): """return true if the action is granted globaly or localy""" if 'fromeid' in kwargs: - subjtype = session.describe(kwargs['fromeid']) + subjtype = session.describe(kwargs['fromeid'])[0] else: subjtype = None if 'toeid' in kwargs: - objtype = session.describe(kwargs['toeid']) + objtype = session.describe(kwargs['toeid'])[0] else: objtype = Nono if objtype and subjtype: