netowners can set gps coords in building

This commit is contained in:
Frank Schubert
2022-02-24 16:54:45 +01:00
parent d8d3d0d43e
commit 38efd60fd4
2 changed files with 29 additions and 13 deletions

View File

@@ -215,9 +215,12 @@ class BuildingController extends mfBaseController {
$data['edit_by'] = 1;
if($this->me->is("Admin")) {
if($this->me->is(["Admin", "netowner"])) {
if($r->gps_lat) $data['gps_lat'] = trim($r->gps_lat);
if($r->gps_long) $data['gps_long'] = trim($r->gps_long);
}
if($this->me->is("Admin")) {
if($r->code) $data['code'] = trim($r->code);
if($r->laea) $data['laea'] = trim($r->laea);
}