Add permission checks
Upgrate ecommerce demo