Skip to content

Infinite oauth redirect if user's primary restaurant doesn't exist on yelp #23

@andymond

Description

@andymond

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions