diff --git a/hesabixArchive/Screenshot-from-2023-10-20-03-45-29-65632f7490cc4.png b/hesabixArchive/Screenshot-from-2023-10-20-03-45-29-65632f7490cc4.png deleted file mode 100644 index 9dd5448..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-10-20-03-45-29-65632f7490cc4.png and /dev/null differ diff --git a/hesabixArchive/Screenshot-from-2023-11-02-10-33-06-65632f7a752ab.png b/hesabixArchive/Screenshot-from-2023-11-02-10-33-06-65632f7a752ab.png deleted file mode 100644 index 4693f83..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-11-02-10-33-06-65632f7a752ab.png and /dev/null differ diff --git a/hesabixArchive/Screenshot-from-2023-11-02-10-33-50-65632f7798ce1.png b/hesabixArchive/Screenshot-from-2023-11-02-10-33-50-65632f7798ce1.png deleted file mode 100644 index 4f922a6..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-11-02-10-33-50-65632f7798ce1.png and /dev/null differ diff --git a/hesabixArchive/Screenshot-from-2023-11-02-10-33-50-6563321f44790.png b/hesabixArchive/Screenshot-from-2023-11-02-10-33-50-6563321f44790.png deleted file mode 100644 index 4f922a6..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-11-02-10-33-50-6563321f44790.png and /dev/null differ diff --git a/hesabixArchive/Screenshot-from-2023-11-20-02-21-17-656331d68bb95.png b/hesabixArchive/Screenshot-from-2023-11-20-02-21-17-656331d68bb95.png deleted file mode 100644 index 0c6bb34..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-11-20-02-21-17-656331d68bb95.png and /dev/null differ diff --git a/hesabixArchive/Screenshot-from-2023-11-20-02-21-17-6563378e08f3e.png b/hesabixArchive/Screenshot-from-2023-11-20-02-21-17-6563378e08f3e.png deleted file mode 100644 index 0c6bb34..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-11-20-02-21-17-6563378e08f3e.png and /dev/null differ diff --git a/hesabixArchive/Screenshot-from-2023-11-20-02-23-45-6563365a016bc.png b/hesabixArchive/Screenshot-from-2023-11-20-02-23-45-6563365a016bc.png deleted file mode 100644 index 8829062..0000000 Binary files a/hesabixArchive/Screenshot-from-2023-11-20-02-23-45-6563365a016bc.png and /dev/null differ diff --git a/hesabixArchive/temp/Screenshot-from-2023-11-20-02-23-45-656336df8292b.png b/hesabixArchive/temp/Screenshot-from-2023-11-20-02-23-45-656336df8292b.png deleted file mode 100644 index 8829062..0000000 Binary files a/hesabixArchive/temp/Screenshot-from-2023-11-20-02-23-45-656336df8292b.png and /dev/null differ diff --git a/hesabixCore/src/Controller/PersonsController.php b/hesabixCore/src/Controller/PersonsController.php index e7b5881..84456cd 100644 --- a/hesabixCore/src/Controller/PersonsController.php +++ b/hesabixCore/src/Controller/PersonsController.php @@ -131,9 +131,22 @@ class PersonsController extends AbstractController { if(!$access->hasRole('person')) throw $this->createAccessDeniedException(); - $persons = $entityManager->getRepository(Person::class)->findBy([ - 'bid'=>$request->headers->get('activeBid') - ]); + $params = []; + if ($content = $request->getContent()) { + $params = json_decode($content, true); + } + if(array_key_exists('speedAccess',$params)){ + $persons = $entityManager->getRepository(Person::class)->findBy([ + 'bid'=>$request->headers->get('activeBid'), + 'speedAccess'=>true + ]); + } + else{ + $persons = $entityManager->getRepository(Person::class)->findBy([ + 'bid'=>$request->headers->get('activeBid') + ]); + } + $response = $provider->ArrayEntity2Array($persons,0); foreach ($persons as $key =>$person){ $rows = $entityManager->getRepository(HesabdariRow::class)->findBy([