]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttRegistrator.class.php
Disabled bot protection check for logged in site admin.
[timetracker.git] / WEB-INF / lib / ttRegistrator.class.php
index b3551dad617898f6adfa9d6a44d5eebccb96b0c0..44841f503f9df391585b78e29f7a825d1a257750 100644 (file)
@@ -84,11 +84,14 @@ class ttRegistrator {
     if ($this->err->yes()) return false; // There are errors, do not proceed.
 
     global $i18n;
+    global $user;
 
     // Protection fom too many recent bot registrations from user IP.
-    if ($this->registeredRecently()) {
-      $this->err->add($i18n->get('error.access_denied'));
-      return false;
+    if (!$user->can('administer_site')) { // No problems for site admin.
+      if ($this->registeredRecently()) {
+        $this->err->add($i18n->get('error.access_denied'));
+        return false;
+      }
     }
 
     import('ttUserHelper');