Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block channel user from accessing regular pro shop #13799

Open
wants to merge 1 commit into
base: distributor
Choose a base branch
from

Conversation

minkyngkm
Copy link
Contributor

@minkyngkm minkyngkm commented Apr 25, 2024

Done

  • Blocked channel user from accessing regular pro shop
  • Blocking regular users from accessing distributor shop will be done by a separate PR (ticket).

QA

  • Login with channel account

  • Go to /pro/subscribe, /account/checkout, /pro/dashboard

  • Check forbidden page shows
    image

  • Login with normal account

  • Check /pro/subscribe page accessible

Issue / Card

Fixes #https://warthogs.atlassian.net/browse/WD-10782

@webteam-app
Copy link

Comment on lines +79 to +80
return flask.render_template(
"account/forbidden.html", reason="channel_account"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought displaying a forbidden page with a link to the distributor page was better than redirecting to the distributor page immediately but please let me know if the other way is better!

@minkyngkm minkyngkm changed the base branch from main to distributor May 2, 2024 12:44
@minkyngkm minkyngkm force-pushed the wp-10782-block-channel-user-pro-shop branch from c3e1b8a to c84e395 Compare May 2, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants