diff --git a/ground/controllers/JsonController.php b/ground/controllers/JsonController.php
index f3322b4..31fea64 100644
--- a/ground/controllers/JsonController.php
+++ b/ground/controllers/JsonController.php
@@ -124,9 +124,9 @@ class JsonController extends Controller
$id = (int) $_POST['id'];
$point = $point->getByPK($id);
- if ($point->author != App::$user->id || ($point->date + 1800 < time() ))
+ if ($point->author != App::$user->id || $point->moderate == 1)
{
- $errors[9] = 'Редактирование точек достурно только администратору!';
+ $errors[9] = 'Редактирование точек достурно только администратору или автору!';
}
}
diff --git a/public/js/map.js b/public/js/map.js
index c535e0d..6faf704 100644
--- a/public/js/map.js
+++ b/public/js/map.js
@@ -283,7 +283,7 @@ function drawInfoPopup(id, showPopup) {
description += '';
description += '';
- if (isAdmin == '1')
+ if (isAdmin == '1' || data.moderate == "hide")
{
description += '';
if (getURLParameter('edit') == 'true')