Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
63a30a31
Commit
63a30a31
authored
May 20, 2016
by
asadiqbal
Committed by
Matt Drayer
May 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL-479 Enable Bulk purchase for anonymous user
parent
53f6d40d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lms/djangoapps/commerce/utils.py
+7
-2
No files found.
lms/djangoapps/commerce/utils.py
View file @
63a30a31
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment