diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-10-03 20:22:34 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-10-03 20:22:34 +0000 |
| commit | 898336f5a045bdcae936968fbe8af9e138b0a85e (patch) | |
| tree | 718c680924bb8a8529e6f279e1a28b938b2d8ade /templates/service_content_icon_inc.tpl | |
| parent | 4ce2054a60f92d894633ba735c997b093db8eb9d (diff) | |
| download | liberty-898336f5a045bdcae936968fbe8af9e138b0a85e.tar.gz liberty-898336f5a045bdcae936968fbe8af9e138b0a85e.tar.bz2 liberty-898336f5a045bdcae936968fbe8af9e138b0a85e.zip | |
large code cleanup - getting rid of broken and unnecessary loadPermissions() method. reduces load and avoids confusion / bugs
Diffstat (limited to 'templates/service_content_icon_inc.tpl')
| -rw-r--r-- | templates/service_content_icon_inc.tpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/service_content_icon_inc.tpl b/templates/service_content_icon_inc.tpl index 3296c2b..c036366 100644 --- a/templates/service_content_icon_inc.tpl +++ b/templates/service_content_icon_inc.tpl @@ -11,7 +11,7 @@ </a> {/if} {if $gBitUser->hasPermission( 'p_liberty_assign_content_perms' ) and $serviceHash.content_id} - {if $gContent->mPerms} {* don't think there is a serviceHash way of working out if there are individual permissions set *} + {if $gContent->hasUserPermissions()} {assign var=perm_icon value="icons/emblem-readonly"} {else} {assign var=perm_icon value="icons/emblem-shared"} @@ -22,4 +22,4 @@ {if $preview && $closeclick} <a onclick="javascript:return cClick();">{biticon ipackage=icons iname=window-close iexplain="Close Popup"}</a> {/if} -{/strip}
\ No newline at end of file +{/strip} |
