Fixed the following:
- Added same optimizations done for the backwards relations search also
  the forward relations
- Added property for portal_membership to avoid having to call it
  everytime in checkPermission