Explorar o código

fix non admin from changing password

CauseFX %!s(int64=5) %!d(string=hai) anos
pai
achega
90760e4c82
Modificáronse 1 ficheiros con 1 adicións e 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);
 			return false;
 		}
-		if ($id !== $this->user['userID']) {
+		if ((int)$id !== $this->user['userID']) {
 			if (!$this->qualifyRequest('1', true)) {
 				return false;
 			}