--- a/src/pyams_security/zmi/plugin/userfolder.py Tue Nov 15 10:35:49 2016 +0100
+++ b/src/pyams_security/zmi/plugin/userfolder.py Tue Nov 15 14:14:54 2016 +0100
@@ -148,7 +148,7 @@
super(UsersFolderSearchView, self).__init__(context, request)
-@adapter_config(context=(IUsersFolderPlugin, IAdminLayer, UsersFolderSearchView), provides=IPageHeader)
+@adapter_config(context=(IUsersFolderPlugin, IPyAMSLayer, UsersFolderSearchView), provides=IPageHeader)
class UsersFolderSearchViewHeaderAdapter(DefaultPageHeaderAdapter):
"""Users folder search view header adapter"""
@@ -241,7 +241,7 @@
#
@viewlet_config(name='users-folder.toolbar.adding', context=IUsersFolderPlugin,
- view=UsersFolderSearchView.search_form_factory, layer=IAdminLayer,
+ view=UsersFolderSearchView.search_form_factory, layer=IPyAMSLayer,
manager=IWidgetTitleViewletManager, permission=MANAGE_SYSTEM_PERMISSION)
class LocalUserAddAction(ToolbarAction):
"""Users folder adding action"""