You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admin has administration capabilities to delete products from the website itself or by going into the admin page. The code for this file is found in products/views.py under the function
`
@login_required()
def delete_product(request, product_id):
""" Delete a product from the store """
if not request.user.is_superuser:
messages.error(request, 'Sorry, only users with special privileges can do that.')
return redirect(reverse('home'))
As an admin I want to be able to delete products from the admin menu or from the UI itself.
The text was updated successfully, but these errors were encountered: