Add more AdminBar tests.
Fix adminbar macro to handle bad asset classes without dying.
This commit is contained in:
parent
98294e4e78
commit
8fa164200a
3 changed files with 16 additions and 1 deletions
|
|
@ -120,6 +120,7 @@ sub process {
|
|||
my %assetList = %{$config->get('assets')};
|
||||
foreach my $assetClass (keys %assetList) {
|
||||
my $dummy = WebGUI::Asset->newByPropertyHashRef($session,{dummy=>1, className=>$assetClass});
|
||||
next unless defined $dummy;
|
||||
next if $dummy->getUiLevel($assetList{$assetClass}{uiLevel}) > $userUiLevel;
|
||||
next unless ($dummy->canAdd($session));
|
||||
next unless exists $categories{$assetList{$assetClass}{category}};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue