Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
f9972381
Commit
f9972381
authored
8 years ago
by
Matt Drayer
Browse files
Options
Downloads
Plain Diff
Merge pull request #12523 from edx/asadiqbal08/WL-479
WL-479 Enable Bulk purchase for anonymous user
parents
b3462e5b
63a30a31
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/commerce/utils.py
+7
-2
7 additions, 2 deletions
lms/djangoapps/commerce/utils.py
with
7 additions
and
2 deletions
lms/djangoapps/commerce/utils.py
+
7
−
2
View file @
f9972381
...
...
@@ -46,9 +46,14 @@ class EcommerceService(object):
def
is_enabled
(
self
,
user
):
"""
Determines the availability of the Ecommerce service based on user activation and service configuration.
Determines the availability of the EcommerceService based on user activation and service configuration.
Note: If the user is anonymous we bypass the user activation gate and only look at the service config.
Returns:
Boolean
"""
return
user
.
is_active
and
self
.
config
.
checkout_on_ecommerce_service
allow_user
=
user
.
is_active
or
user
.
is_anonymous
()
return
allow_user
and
self
.
config
.
checkout_on_ecommerce_service
def
payment_page_url
(
self
):
"""
Return the URL for the checkout page.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment