o.jsvalidate = "((hasPermission( lastSelectedId, #PermNavCreate# ) >= 0) && (objects[lastSelectedId]['TYPENAME'].toLowerCase()=='#lcase(attributes.nodetype)#'))";
It looks to me that instead of checking whether the permission is >= 0, it should be 1 if I can create. If I change the line to this:
o.jsvalidate = "((hasPermission( lastSelectedId, #PermNavCreate# )) && (objects[lastSelectedId]['TYPENAME'].toLowerCase()=='#lcase(attributes.nodetype)#'))";
the menu stops displaying the Create option unless I actually have the Create permission. From what I understand about FarCry permissions, -1 = no, 1 = true and 0 = inherit? However if you get to the top of the tree and still have 0 should that be a no (-1)?
--Kyle
--
Kyle Singer Lead Web Developer *Whitman College* /[EMAIL PROTECTED]/
--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
