Changeset 2249 in products


Ignore:
Timestamp:
May 1, 2010 10:09:13 PM (11 years ago)
Author:
crchemist
Message:

fix for #204

Location:
quintagroup.seoptimizer/trunk/quintagroup/seoptimizer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/configure.zcml

    r2247 r2249  
    7676        class=".views.SEOContextPropertiesView" 
    7777        layer=".interfaces.IPloneSEOLayer" 
    78         permission="zope2.View" 
     78        permission="cmf.ModifyPortalContent" 
    7979        /> 
    8080 
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/tests/testBugs.py

    r2247 r2249  
    119119        resp = self.publish(path=portal_url, basic=member_auth) 
    120120        self.assertEqual(resp.getStatus(), 200) 
    121          
     121 
    122122        # This fails, althought must pass 
    123123        resp = self.publish(path=portal_url, basic=editor_auth) 
    124124        self.assertEqual(resp.getStatus(), 200) 
     125 
     126    def test_seo_context_properties_perms(self): 
     127        # Anonymous are not allowed to access to @@seo-context-properties 
     128        self.portal.portal_workflow.doActionFor(self.my_doc, 'publish') 
     129        resp = self.publish(path=self.mydoc_path+'/@@seo-context-properties') 
     130        self.assertNotEqual(resp.getStatus(), 200) 
     131 
    125132 
    126133def test_suite(): 
Note: See TracChangeset for help on using the changeset viewer.