Skip to content

Commit a164a55

Browse files
committed
squash!: Comment on permissions
1 parent 4d7426b commit a164a55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • openedx/core/djangoapps/content_libraries/rest_api

openedx/core/djangoapps/content_libraries/rest_api/libraries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ def post(self, request, lib_key_str):
753753
Start backup task for the specified library.
754754
"""
755755
library_key = LibraryLocatorV2.from_string(lib_key_str)
756+
# Using CAN_EDIT_THIS_CONTENT_LIBRARY permission for now. This should eventually become its own permission
756757
api.require_permission_for_library_key(library_key, request.user, permissions.CAN_EDIT_THIS_CONTENT_LIBRARY)
757758

758759
async_result = backup_library.delay(request.user.id, str(library_key))
@@ -776,6 +777,7 @@ def get(self, request, lib_key_str):
776777
Get the status of the specified or latest backup task for the specified library.
777778
"""
778779
library_key = LibraryLocatorV2.from_string(lib_key_str)
780+
# Using CAN_EDIT_THIS_CONTENT_LIBRARY permission for now. This should eventually become its own permission
779781
api.require_permission_for_library_key(library_key, request.user, permissions.CAN_EDIT_THIS_CONTENT_LIBRARY)
780782

781783
task_id = request.query_params.get('task_id', None)

0 commit comments

Comments
 (0)