big fix in sell controller
This commit is contained in:
parent
b2c410f85a
commit
132a11532f
|
@ -16,8 +16,8 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|||
|
||||
class SellController extends AbstractController
|
||||
{
|
||||
#[Route('/api/sell/edit/can/{code}', name: 'app_buy_can_edit')]
|
||||
public function app_buy_can_edit(Request $request,Access $access,Log $log,EntityManagerInterface $entityManager, string $code): JsonResponse
|
||||
#[Route('/api/sell/edit/can/{code}', name: 'app_sell_can_edit')]
|
||||
public function app_sell_can_edit(Request $request,Access $access,Log $log,EntityManagerInterface $entityManager, string $code): JsonResponse
|
||||
{
|
||||
$canEdit = true;
|
||||
$acc = $access->hasRole('sell');
|
||||
|
@ -41,8 +41,8 @@ class SellController extends AbstractController
|
|||
]);
|
||||
}
|
||||
|
||||
#[Route('/api/sell/get/info/{code}', name: 'app_buy_get_info')]
|
||||
public function app_buy_get_info(Request $request,Access $access,Log $log,EntityManagerInterface $entityManager, string $code): JsonResponse
|
||||
#[Route('/api/sell/get/info/{code}', name: 'app_sell_get_info')]
|
||||
public function app_sell_get_info(Request $request,Access $access,Log $log,EntityManagerInterface $entityManager, string $code): JsonResponse
|
||||
{
|
||||
$acc = $access->hasRole('sell');
|
||||
if(!$acc)
|
||||
|
|
Loading…
Reference in a new issue