Explorar el Código

fix non admin from changing password

CauseFX hace 5 años
padre
commit
90760e4c82
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      api/classes/organizr.class.php

+ 1 - 1
api/classes/organizr.class.php

@@ -5161,7 +5161,7 @@ class Organizr
 			$this->setAPIResponse('error', 'Id was not supplied', 422);
 			$this->setAPIResponse('error', 'Id was not supplied', 422);
 			return false;
 			return false;
 		}
 		}
-		if ($id !== $this->user['userID']) {
+		if ((int)$id !== $this->user['userID']) {
 			if (!$this->qualifyRequest('1', true)) {
 			if (!$this->qualifyRequest('1', true)) {
 				return false;
 				return false;
 			}
 			}