[Zope-Checkins] CVS: Zope/lib/python/App - Management.py:1.50

Shane Hathaway shane@digicool.com
Tue, 4 Sep 2001 12:50:48 -0400


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv13871

Modified Files:
	Management.py 
Log Message:
Patched manage_workspace in the much simpler way suggested by
Dominique.Dutoit@cec.eu.int .  Thanks!


=== Zope/lib/python/App/Management.py 1.49 => 1.50 ===
 from string import split, join, find
 from AccessControl import getSecurityManager
-from Acquisition import aq_base
 
 class Tabs(ExtensionClass.Base):
     """Mix-in provides management folder tab support."""
@@ -137,15 +136,10 @@
         return result
                     
             
-    manage_workspace__roles__=('Anonymous',)
+    manage_workspace__roles__=('Authenticated',)
     def manage_workspace(self, REQUEST):
         """Dispatch to first interface in manage_options
         """
-        from AccessControl.User import nobody
-        if aq_base(getSecurityManager().getUser()) is aq_base(nobody):
-            # No authentication credentials presented.
-            raise 'Unauthorized', (
-                'You are not authorized to view this object.')
         options=self.filtered_manage_options(REQUEST)
         try:
             m=options[0]['action']