Convert LibraryContentModule to LibraryContentBlock. (#24611)

This commit is contained in:
Usman Khalid
2020-09-15 17:41:29 +05:00
committed by GitHub
parent 5429f8510f
commit 8546fa6b6f
8 changed files with 173 additions and 79 deletions

View File

@@ -279,7 +279,7 @@ class StudioPermissionsService(object):
Deprecated. To be replaced by a more general authorization service.
Only used by LibraryContentDescriptor (and library_tools.py).
Only used by LibraryContentBlock (and library_tools.py).
"""
def __init__(self, user):
self._user = user
@@ -305,7 +305,7 @@ class StudioEditModuleRuntime(object):
def service(self, block, service_name):
"""
This block is not bound to a user but some blocks (LibraryContentModule) may need
This block is not bound to a user but some blocks (LibraryContentBlock) may need
user-specific services to check for permissions, etc.
If we return None here, CombinedSystem will load services from the descriptor runtime.
"""