plone.app.layout/show_toolbar_permission: removed unnecessary permissions.py, updated permission id

Peter Holzer <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: plone.app.layout
Branch: refs/heads/show_toolbar_permission
Date: 2017-07-10T09:31:07+02:00
Author: Peter Holzer (agitator) <peter.holzer-2KzcThb1VtpWk0Htik3J/[email protected]>
Commit: https://github.com/plone/plone.app.layout/commit/f407adcaf540f372fe67972a222898c4c0e711d6

removed unnecessary permissions.py, updated permission id

Files changed:
M plone/app/layout/permissions.zcml
D plone/app/layout/permissions.py

diff --git a/plone/app/layout/permissions.py b/plone/app/layout/permissions.py
deleted file mode 100644
index 85142ed..0000000
--- a/plone/app/layout/permissions.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# -*- coding: utf-8 -*-
-from AccessControl.SecurityInfo import ModuleSecurityInfo
-from Products.CMFCore.permissions import setDefaultRoles
-
-
-security = ModuleSecurityInfo('plone.app.layout')
-
-security.declarePublic('ShowToolbar')
-ShowToolbar = 'Show Toolbar'
-setDefaultRoles(ShowToolbar, ('Authenticated',))
diff --git a/plone/app/layout/permissions.zcml b/plone/app/layout/permissions.zcml
index f499056..3a5db1c 100644
--- a/plone/app/layout/permissions.zcml
+++ b/plone/app/layout/permissions.zcml
@@ -5,7 +5,7 @@
   <configure zcml:condition="installed AccessControl.security">
 
     <permission
-      id="plone.ShowToolbar"
+      id="ShowToolbar"
       title="Show Toolbar"
       />
 



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.