Added canEdit template variable for events.
This commit is contained in:
parent
c4384bd8f8
commit
2b84211088
3 changed files with 9 additions and 0 deletions
|
|
@ -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?
|
||||
|
|
|
|||
|
|
@ -88,6 +88,9 @@ our $HELP = {
|
|||
isa => [
|
||||
],
|
||||
variables => [
|
||||
{
|
||||
'name' => 'canEdit',
|
||||
},
|
||||
{
|
||||
'name' => 'isPublic',
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue