- fix [ 1165635 ] IndexedSearch - double toolbar in AdminMode [mwilson]
This commit is contained in:
parent
026822b09f
commit
3e23faa660
3 changed files with 8 additions and 2 deletions
|
|
@ -21,6 +21,7 @@
|
|||
[ 1149801 ] page position not maintained (Martin Kamerbeek)
|
||||
- fix [ 1165373 ] sort templates into folders by namespace under ImportNode
|
||||
- fix [ 1118789 ] 6.2.11 - L_loginBox display with empty 1st param [colink]
|
||||
- fix [ 1165635 ] IndexedSearch - double toolbar in AdminMode [mwilson]
|
||||
|
||||
|
||||
6.5.2
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ WebGUI::SQL->write("delete from settings where name in ('siteicon','favicon')");
|
|||
print "\tMigrating wobject templates to asset templates.\n" unless ($quiet);
|
||||
my $sth = WebGUI::SQL->read("select templateId, template, namespace from template where namespace in ('Article',
|
||||
'SyndicatedContent', 'MessageBoard', 'DataForm', 'HttpProxy', 'Poll', 'Product', 'WobjectProxy',
|
||||
'IndexedSearch', 'SQLReport', 'Survey', 'WSClient')");
|
||||
'SQLReport', 'Survey', 'WSClient')");
|
||||
while (my $t = $sth->hashRef) {
|
||||
$t->{template} = '<a name="<tmpl_var assetId>"></a>
|
||||
<tmpl_if session.var.adminOn>
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ while (my $namespace = $sth->hashRef) {
|
|||
styleTemplateId=>'PBtmpl0000000000000060',
|
||||
printableStyleTemplateId=>'PBtmpl0000000000000111',
|
||||
groupIdView=>'4',
|
||||
groupIdEdit=>'3'
|
||||
groupIdEdit=>'3',
|
||||
description=>''
|
||||
});
|
||||
my $templatesquery = "select * from asset, template where asset.parentId='".$templateFolder."' and asset.assetId=template.assetId and asset.className='WebGUI::Asset::Template' and template.namespace='".$namespace->{namespace}."' order by title asc";
|
||||
my $newParentId = $folder->getId;
|
||||
|
|
@ -58,6 +59,10 @@ while (my $namespace = $sth->hashRef) {
|
|||
}
|
||||
$sth->finish;
|
||||
|
||||
#Lock down permissions on viewing templates. There's no reason "everyone"
|
||||
#should be allowed to view them if the www_view method returns the parent
|
||||
#container anyway...!
|
||||
WebGUI::SQL->write("update asset set groupIdView='4' where className='WebGUI::Asset::Template'");
|
||||
|
||||
WebGUI::Session::close();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue