projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rt 4.2.16
[freeside.git]
/
rt
/
share
/
html
/
Articles
/
Article
/
History.html
diff --git
a/rt/share/html/Articles/Article/History.html
b/rt/share/html/Articles/Article/History.html
index
8fc9d28
..
071bdce
100644
(file)
--- a/
rt/share/html/Articles/Article/History.html
+++ b/
rt/share/html/Articles/Article/History.html
@@
-2,7
+2,7
@@
%#
%# COPYRIGHT:
%#
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-201
4
Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-201
9
Best Practical Solutions, LLC
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
%# <sales@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@
-45,13
+45,25
@@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-<& /Elements/Header, Title =>
$title
&>
+<& /Elements/Header, Title =>
loc('History for article #[_1]', $id)
&>
<& /Elements/Tabs &>
<& /Elements/Tabs &>
-<& Elements/ShowHistory, id => $id &>
+<& /Elements/ShowHistory,
+ Object => $article,
+ ShowHeaders => 0,
+ ShowDisplayModes => 0,
+ ShowActions => 0,
+ DisplayPath => 'History.html',
+ &>
<%init>
<%init>
-my $title =loc('History for article #[_1]',$id);
-</%init>
+my $article = RT::Article->new($session{'CurrentUser'});
+$article->Load($id);
+
+Abort(loc("Article #[_1] not found", $id))
+ unless $article->Id;
+Abort(loc("Permission Denied"))
+ unless $article->CurrentUserHasRight('ShowArticle');
+</%init>
<%args>
$id => undef
</%args>
<%args>
$id => undef
</%args>