diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-09-06 11:34:51 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-09-06 11:34:51 -0700 |
commit | 6c6031052257bdccf82ce2b598b42d743f455728 (patch) | |
tree | 4d3fe90689c6852bd06529981ed7f53d325bb8f7 | |
parent | 610c99cd04343233af63f3ad841e7de2bad91520 (diff) |
Don't show clickable link for breadcrumb items where the user doesn't
have edit permissions.
-rw-r--r-- | modules/gallery/views/permissions_browse.html.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery/views/permissions_browse.html.php b/modules/gallery/views/permissions_browse.html.php index 99a1b7bd..519734d6 100644 --- a/modules/gallery/views/permissions_browse.html.php +++ b/modules/gallery/views/permissions_browse.html.php @@ -40,9 +40,13 @@ <ul class="gBreadcrumbs"> <? foreach ($parents as $parent): ?> <li id="item-<?= $parent->id ?>"> + <? if (access::can("edit", $parent)): ?> <a href="javascript:show(<?= $parent->id ?>)"> <?= html::purify($parent->title) ?> </a> + <? else: ?> + <?= html::purify($parent->title) ?> + <? endif ?> </li> <? endforeach ?> <li class="active" id="item-<?= $item->id ?>"> |