This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

ACL Implementation - The Right Way MVC

New topics about Symfony 2 should go here

ACL Implementation - The Right Way MVC

by Antonis » Tue Jun 23, 2015 1:25 pm

Hello Everyone,

First Post here on the Forum.

For a REST Project, I have the following question regarding the management of ACL.
(Project Used: Symfony Rest Edition)

Let's put it simple, we have a Product Object.
The Product belongs to a shop.
The Product is linked to a Supplier.
The Supplier also belongs to a shop.

On the POST Product:
- Among others, we receive an ID of supplier to link. (Product->Supplier)
- How should we check that the supplier exists & belongs to the shop?
-> Should it be integrated into the Form validation?
-> Should it be carried out by the ProductManager? (and maybe should call the SupplierManager->GetSupplier($id) to verify it exits?)
-> Should it be carried out somewhere else?
-> Or maybe the implementation itself is erroneous?

Thank you for your help!

Antoine
Antonis
Junior Member
 
Posts: 1
Joined: Tue Jun 23, 2015 1:14 pm