Added canEdit template variable for events.

This commit is contained in:
James Tolley 2007-05-25 20:10:47 +00:00
parent c4384bd8f8
commit 2b84211088
3 changed files with 9 additions and 0 deletions

View file

@ -1160,6 +1160,7 @@ sub getTemplateVars {
my %var;
# Some miscellaneous stuff
$var{'canEdit'} = $self->canEdit;
$var{"isPublic"} = 1
if $self->get("groupIdView") eq "7";
$var{"groupToView"} = $self->get("groupIdView"); # Todo: Remove this?

View file

@ -88,6 +88,9 @@ our $HELP = {
isa => [
],
variables => [
{
'name' => 'canEdit',
},
{
'name' => 'isPublic',
},

View file

@ -452,6 +452,11 @@ be useful, others may not.|,
message => q{Event},
lastUpdated => 1131394072,
},
'canEdit' => {
message => q{This variable is true if the current user can edit this event.},
lastUpdated => 0,
},
};
1;