Removed useless restrictions factory on shared resources manager
authorThierry Florac <thierry.florac@onf.fr>
Mon, 13 May 2019 17:36:03 +0200
changeset 1309 82c60033f08e
parent 1308 4dd7d89350e0
child 1310 2302a43f55b0
Removed useless restrictions factory on shared resources manager
src/pyams_content/shared/resource/manager.py
--- 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