changed permission set in logged user to a tree set, modified permissions class to use set