diff options
| author | Sylvie Greverend <sylvieg@users.sourceforge.net> | 2006-05-22 17:40:33 +0000 |
|---|---|---|
| committer | Sylvie Greverend <sylvieg@users.sourceforge.net> | 2006-05-22 17:40:33 +0000 |
| commit | ea48702ce53d931a4ea540b662cdd51d50bb4584 (patch) | |
| tree | 3b9c56a7c7870fe9ec05fa656cc361cce80c5d7e | |
| parent | cfed8cee5f818e1c0e5ceaab73ccb1ad0a2865ae (diff) | |
| download | pigeonholes-ea48702ce53d931a4ea540b662cdd51d50bb4584.tar.gz pigeonholes-ea48702ce53d931a4ea540b662cdd51d50bb4584.tar.bz2 pigeonholes-ea48702ce53d931a4ea540b662cdd51d50bb4584.zip | |
don't show edit/delete if no perm
| -rw-r--r-- | templates/section_inc.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/section_inc.tpl b/templates/section_inc.tpl index ed2eed5..97a2cc1 100644 --- a/templates/section_inc.tpl +++ b/templates/section_inc.tpl @@ -26,7 +26,7 @@ <li> <a href="{$smarty.const.BIT_ROOT_URL}index.php?content_id={$pigeonMember.content_id}">{$pigeonMember.title|escape}</a> - {if $gBitUser->hasPermission( 'edit_pigeonholes' )} + {if $gBitUser->hasPermission( 'p_pigeonholes_edit' )} {smartlink ititle="Remove Item" ibiticon="liberty/delete_small" expand_all=$smarty.request.expand_all action=dismember structure_id=$pigeonItem.structure_id parent_id=$pigeonMember.content_id content_id=$pigeonItem.content_id} {/if} </li> @@ -48,7 +48,7 @@ {else} {* ======= very basic display of the pigoenhole structure ======= *} - {if !$no_edit} + {if !$no_edit and $gBitUser->hasPermission( 'p_pigeonholes_edit' )} <div class="floaticon"> {smartlink ititle="Insert new Category" ifile="edit_pigeonholes.php" ibiticon="liberty/new" structure_id=`$subtree[ix].structure_id` action=create} {smartlink ititle="Edit Category" ibiticon="liberty/edit" ifile="edit_pigeonholes.php" structure_id=$subtree[ix].structure_id action=edit} |
