--- 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: