Browse Source

fix non admin from changing password

CauseFX 5 years ago
parent
commit
90760e4c82
1 changed files with 1 additions and 1 deletions
  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;
 			}
 			}