0 Replies Latest reply on Dec 18, 2006 10:35 AM by mmontoni

    Secure new Instance of CMSAdminPortlet.

      Hi,

      I created a new instance of the CMSAdminPortlet. I adde it inside of an "Admin" page of myPortal app. I do have a myPortal-object.xml description where I put the folowing:

      <window>
       <window-name>CMSAdminPortletWindow</window-name>
       <instance-ref>CMSAdminPortletInstance2</instance-ref>
       <region>center</region>
       <height>0</height>
      </window>
      


      My problem is that I would like that the "Admin" option is only viewed if you are logged as "Admin". This is not happening. Now, anyone can see it. I did try to add the following in my portlet-instance.xml but it didn't work either. Any ideas?


       <deployment>
       <instance>
       <instance-id>CMSAdminPortletInstance2</instance-id>
       <portlet-ref>CMSAdminPortlet</portlet-ref>
       <security-constraint>
       <policy-permission>
       <role-name>Admin</role-name>
       <action-name>view</action-name>
       </policy-permission>
       </security-constraint>
       </instance>
       </deployment>
      


      Thanks!
      Mariella.