being in admins group automatically results in a ui level great enough to see everything

This commit is contained in:
JT Smith 2005-08-04 14:43:35 +00:00
parent fa678a65fa
commit debd4e8c82
3 changed files with 12 additions and 2 deletions

View file

@ -361,7 +361,7 @@ sub getAssetAdderLinks {
if ($@) {
WebGUI::ErrorHandler::error("Couldn't get UI level of ".$class." because ".$@);
} else {
next if ($uiLevel > $session{user}{uiLevel});
next if ($uiLevel > $session{user}{uiLevel} || WebGUI::Grouping::isInGroup(3));
}
my $canAdd = eval{$class->canAdd()};
if ($@) {