Wrong documentation?
In the help documentation for the 'Authenticated_User' object it says the following.. hasRole(object, roles): Return a value that is true if the user has the given roles on the given object and return false otherwise. Permission - Always available getRoles(object): Returns a list of the roles the user has on the given object (in the current context?) Permission - Always available Neither seem to work (when given an object) with the standard user folder or LoginManager. In Login Manager (and it appears in the normal User Folder, though i haven't tested it) you have to use getRolesInContext(object). As well it appears that hasRole returns 1 when it's not suppose to. The has_role(roles, object) appears to work the way it hasRole is suppose to. Has the documentation become out of date or is their something else going on that i have missed? Mithro
participants (1)
-
Tim Ansell