mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
status log can be turned on with advanced access control
This commit is contained in:
parent
7c0634f272
commit
d92acf86a9
|
@ -2,6 +2,7 @@
|
|||
Changes in version 6.0.25
|
||||
--------------------------------------------------------------------------------
|
||||
- merge changes up to 5.1.32
|
||||
- status log can be turned on with advanced access control
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 6.0.24
|
||||
|
|
|
@ -1094,7 +1094,7 @@ $(document).ready( function() {
|
|||
$this->showVersionDetails($latestContent, $previewer, true);
|
||||
$this->contentContainerEnd();
|
||||
|
||||
if($user->isAdmin()) {
|
||||
if($accessobject->check_view_access($this, array('action'=>'statuslog'))) {
|
||||
$this->contentHeading(getMLText("status"));
|
||||
$this->contentContainerStart();
|
||||
$statuslog = $latestContent->getStatusLog();
|
||||
|
@ -1110,30 +1110,6 @@ $(document).ready( function() {
|
|||
}
|
||||
print "</tbody>\n</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
/*
|
||||
$wkflogs = $latestContent->getWorkflowLog();
|
||||
if($wkflogs) {
|
||||
$this->contentHeading(getMLText("workflow_log"));
|
||||
$this->contentContainerStart();
|
||||
foreach($wkflogs as $wkflogt) {
|
||||
echo "<table class=\"table table-condensed table-sm\"><thead>";
|
||||
echo "<th>".getMLText('workflow')."</th><th>".getMLText('date')."</th><th>".getMLText('action')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>\n";
|
||||
echo "</thead><tbody>";
|
||||
foreach($wkflogt as $wkflog) {
|
||||
echo "<tr>";
|
||||
echo "<td>".htmlspecialchars($wkflog->getWorkflow()->getName())."</td>";
|
||||
echo "<td>".getLongReadableDate($wkflog->getDate())."</td>";
|
||||
echo "<td>".htmlspecialchars(getMLText('action_'.strtolower($wkflog->getTransition()->getAction()->getName()), array(), $wkflog->getTransition()->getAction()->getName()))."</td>";
|
||||
$loguser = $wkflog->getUser();
|
||||
echo "<td>".htmlspecialchars($loguser->getFullName())."</td>";
|
||||
echo "<td>".htmlspecialchars($wkflog->getComment())."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
print "</tbody>\n</table>\n";
|
||||
}
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
*/
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user