Răsfoiți Sursa

Set max distance to 1000 miles for super admins temporarily.

Alan Lam 8 ani în urmă
părinte
comite
d974546baf
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 4 0
      controllers/project_ajax.php

+ 4 - 0
controllers/project_ajax.php

@@ -99,6 +99,10 @@ if($submit) {
 				*/
 				*/
 
 
 				$max_distance = 25;
 				$max_distance = 25;
+				
+				if(Core::$user->level == User::LEVEL_SUPERADMIN) {
+					$max_distance = 1000;
+				}
 
 
 				$bounds = Geolocation::getBounds($location->getGeolocation(), $max_distance);
 				$bounds = Geolocation::getBounds($location->getGeolocation(), $max_distance);