#10 Added Product section to admin page
This commit is contained in:
@@ -31,7 +31,7 @@ def view_product_stats(id: int):
|
||||
# Check user is seller
|
||||
if not is_role("Seller"):
|
||||
flash("You must be logged in as a seller to view this page!", "error")
|
||||
return redirect(url_for('main.index'))
|
||||
return redirect(url_for('main.products.product', id=id))
|
||||
|
||||
db = ProductController()
|
||||
product = db.read_id(id)
|
||||
|
||||
Reference in New Issue
Block a user