Skip to content
Snippets Groups Projects
Commit 2df3a6ef authored by Victor Shnayder's avatar Victor Shnayder
Browse files

Big access control refactor

* All access control logic is now in access.py
* It exports a single method for general use: has_access(user, object, action)
 - possible actions depend on object type (e.g. 'see_exists', 'enroll', 'staff')
* Removed DARK_LAUNCH feature flag--it is now the default behavior
* Replaced check_course with three separate more focused functions that use has_access

Minor things:
* note on using pdb in testing
* moved time parsing helper into timeparse.py
* x_modules now have a .start attribute (None if not in metadata)
parent 49d36746
Branches
Tags release-2020-05-01-10.53
No related merge requests found
Showing
with 414 additions and 219 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment