Ver código fonte

allow admin to make other admins

CauseFX 5 anos atrás
pai
commit
8f969517d4
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      api/classes/organizr.class.php

+ 3 - 2
api/classes/organizr.class.php

@@ -5199,8 +5199,9 @@ class Organizr
 		}
 		if (array_key_exists('group_id', $array)) {
 			if ($array['group_id'] == '') {
-				$this->setAPIResponse('error', 'group_id was set but empty', 409);
-				return false;
+				$array['group_id'] = 0;
+				//$this->setAPIResponse('error', 'group_id was set but empty', 409);
+				//return false;
 			}
 			if (!$this->qualifyRequest('1', false)) {
 				$this->setAPIResponse('error', 'Cannot change your own group_id', 401);