log permission fixes

- fixed bug introduced with commit 016f3c7d
- fixed log edit links for locked caches when using viewlogs.php
    (added `status` to SELECT statement)
This commit is contained in:
following
2012-08-26 18:21:40 +02:00
parent 12bf606cfc
commit 53b73481f5
2 changed files with 12 additions and 2 deletions
@@ -38,7 +38,7 @@
[<a href="editlog.php?logid={$logItem.id|urlencode}">{t}Edit{/t}</a>]
{/if}
{if $logItem.userid==$login.userid}
{if $cache.userid==$login.userid || $logItem.userid==$login.userid}
<a href="removelog.php?logid={$logItem.id|urlencode}"><img src="resource2/{$opt.template.style}/images/log/16x16-trash.png" border="0" align="middle" border="0" width="16" height="16" alt="" /></a>
[<a href="removelog.php?logid={$logItem.id|urlencode}">{t}Delete{/t}</a>]
{/if}