We are using the getobjectrights lapi call to get the permission set on an object (document) for a user. But the permission returned is just a single value instead of a 'set'. It seems this value is a sum of all the permissions avaiable to the user.
I would like to know how to break up this sum into its individual components? How do you come to know which all permissions are available to the user by looking at the value returned? Kindly help.