--- a/src/pyams_content/shared/resource/manager.py Mon May 13 17:31:02 2019 +0200
+++ b/src/pyams_content/shared/resource/manager.py Mon May 13 17:36:03 2019 +0200
@@ -21,10 +21,9 @@
from pyams_content.component.paragraph import IParagraphFactorySettings
from pyams_content.component.theme import ICollectionsManagerTarget, IThemesManagerTarget
from pyams_content.reference.pictograms.interfaces import IPictogramManagerTarget
-from pyams_content.shared.common.interfaces import IManagerRestrictionsFactory, ISharedContentFactory
-from pyams_content.shared.common.security import SharedToolManagerRestrictionInfo
+from pyams_content.shared.common.interfaces import ISharedContentFactory
from pyams_content.shared.common.types import TypedSharedTool
-from pyams_content.shared.resource import RESOURCE_CONTENT_TYPE, IResourceInfo, Resource
+from pyams_content.shared.resource import IResourceInfo, RESOURCE_CONTENT_TYPE, Resource
from pyams_content.shared.resource.interfaces import IResourceManager, IResourceManagerFactory
from pyams_utils.adapter import adapter_config
from pyams_utils.registry import utility_config
@@ -52,12 +51,6 @@
return ResourceManager
-@adapter_config(context=IResourceManager, provides=IManagerRestrictionsFactory)
-def resource_manager_restrictions_factory(context):
- """Resource manager custom restrictions factory"""
- return SharedToolManagerRestrictionInfo
-
-
@adapter_config(context=IResourceManager, provides=ISharedContentFactory)
def resource_manager_content_factory(context):
return Resource