Added some checking for distance is search view
Changed permissions so that users who own resources can edit them when not visible