first round of changes for the new session system

This commit is contained in:
JT Smith 2005-12-31 21:54:06 +00:00
parent da95226072
commit d4b7f2ce59
128 changed files with 2442 additions and 1478 deletions

View file

@ -11,7 +11,6 @@ package WebGUI::Macro::CanEditText;
#-------------------------------------------------------------------
use strict;
use WebGUI::Session;
=head1 NAME
@ -34,8 +33,9 @@ this asset, an empty string will be returned.
#-------------------------------------------------------------------
sub process {
my $session = shift;
my @param = @_;
if (exists $session{asset} && $session{asset}->canEdit) {
if ($session->asset && $session->asset->canEdit) {
return $param[0];
} else {
return "";