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
79f89d5e
Commit
79f89d5e
authored
Jul 30, 2014
by
Joe Blaylock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing more tests?
parent
36b596e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lms/djangoapps/courseware/access.py
+4
-4
No files found.
lms/djangoapps/courseware/access.py
View file @
79f89d5e
...
@@ -170,10 +170,10 @@ def _has_access_course_desc(user, action, course):
...
@@ -170,10 +170,10 @@ def _has_access_course_desc(user, action, course):
else
:
else
:
reg_method_ok
=
True
# if not using this access check, it's always OK.
reg_method_ok
=
True
# if not using this access check, it's always OK.
if
reg_method_ok
and
within_enrollment_period
():
#
if reg_method_ok and within_enrollment_period():
# in enrollment period, so any user is allowed to enroll.
#
# in enrollment period, so any user is allowed to enroll.
debug
(
"Allow: in enrollment period"
)
#
debug("Allow: in enrollment period")
return
True
#
return True
now
=
datetime
.
now
(
UTC
())
now
=
datetime
.
now
(
UTC
())
start
=
course
.
enrollment_start
or
datetime
.
min
.
replace
(
tzinfo
=
pytz
.
UTC
)
start
=
course
.
enrollment_start
or
datetime
.
min
.
replace
(
tzinfo
=
pytz
.
UTC
)
...
...
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