Looking into what's causing this issue - looks like error occurs if a user creates an account without restaurant information, this leads to Permission.chef_permissions always returning false & causing a redirect loop whenever any place on the site is accessed
Current fixes:
don't allow users to sign up with out restaurant info
before save on user model to ensure restaurant exists / create default restaurant?
Looking into what's causing this issue - looks like error occurs if a user creates an account without restaurant information, this leads to Permission.chef_permissions always returning false & causing a redirect loop whenever any place on the site is accessed
Current fixes:
don't allow users to sign up with out restaurant info
before save on user model to ensure restaurant exists / create default restaurant?