rabin преди 5 години
родител
ревизия
2e37694146
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      service/src/Buy.php

+ 1 - 1
service/src/Buy.php

@@ -9,7 +9,7 @@ class Buy extends Base
     {
     {
     	parent::__construct();
     	parent::__construct();
 
 
-    	if (!$this->user) {
+    	if (!$this->user || ($this->user && $this->user < 0)) {
     		return $this->location('home');
     		return $this->location('home');
     	}
     	}