diff --git a/hesabixCore/src/Controller/TransferController.php b/hesabixCore/src/Controller/TransferController.php index e558fb4..b4628ef 100644 --- a/hesabixCore/src/Controller/TransferController.php +++ b/hesabixCore/src/Controller/TransferController.php @@ -19,7 +19,7 @@ class TransferController extends AbstractController #[Route('/api/transfer/search', name: 'app_transfer_search')] public function app_transfer_search(Provider $provider,Request $request,Access $access,Log $log,EntityManagerInterface $entityManager): JsonResponse { - $acc = $access->hasRole('transfer'); + $acc = $access->hasRole('bankTransfer'); if(!$acc) throw $this->createAccessDeniedException(); $items = $entityManager->getRepository(HesabdariDoc::class)->findBy([ diff --git a/hesabixCore/src/Entity/Permission.php b/hesabixCore/src/Entity/Permission.php index d135008..a0439ff 100644 --- a/hesabixCore/src/Entity/Permission.php +++ b/hesabixCore/src/Entity/Permission.php @@ -120,9 +120,6 @@ class Permission #[ORM\Column(nullable: true)] private ?bool $plugRepservice = null; - #[ORM\Column(nullable: true)] - private ?bool $Transfer = null; - public function getId(): ?int { return $this->id; @@ -548,15 +545,4 @@ class Permission return $this; } - public function isTransfer(): ?bool - { - return $this->Transfer; - } - - public function setTransfer(?bool $Transfer): static - { - $this->Transfer = $Transfer; - - return $this; - } }