Here's how I do it. Change
org/apache/jetspeed/portal/portlets/AbstractPortlet.java to read (middle
block added):
public boolean allowCustomize( RunData rundata )
{
if ( (rundata.getUser() == null) || !rundata.getUser().hasLoggedIn()
)
{
return false; //No permission if user not logged in
}
String allowed=null;
if(getPortletConfig()!=null)
allowed=getPortletConfig().getInitParameter("_allowCustomize");
if("true".equals(allowed))
return true;
if("false".equals(allowed))
return false;
return (JetspeedSecurity.checkPermission(rundata,
JetspeedSecurity.PERMISSION_CUSTOMIZE,
this));
}
Then, in your <portlet-entry>, add:
<parameter name="_allowCustomize" value="false" hidden="true"/>
Be warned, though, that once you disallow customize, the info icon will
appear, so you may want to do the same thing with that. Since I do this with
most of my portlets, I've got a portlets defined like so:
<portlet-entry name="paHTML" hidden="true" type="ref" parent="HTML"
application="false">
<parameter name="_allowClose" value="false" hidden="true"/>
<parameter name="_allowCustomize" value="false" hidden="true"/>
<parameter name="_allowInfo" value="false" hidden="true"/>
</portlet-entry>
Then, I use "paHTML" as the parent, instead of "HTML". This is just my
solution. Hope it helps.
DCY
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>