anay: Few modifications to get all the objects on which a given user has given privilege
anay: Few modifications to get all the objects on which a given user has given privilege : Getting the query right
anay: Getting the objects on which a given user has given privilege : Returning the relation object so that it could be queried.