From c10081707e6b9ae4cd5091c6ce3d11c8cd03f858 Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Wed, 11 Jul 2007 17:42:30 +0000 Subject: SCHEMA CHANGE: (minor) rename is_excluded to a more intuitive is_revoked for liberty_content_perms, also major update to hasUserPermission to get all permissions for the current user joined with perms for the current content. This should handle cases where non-default permissions is assigned, default permission is removed, and duplicate default permissions where one group's perm is revoked, but another is still permitted. --- templates/content_permissions.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/content_permissions.tpl') diff --git a/templates/content_permissions.tpl b/templates/content_permissions.tpl index dc0c346..c4ae116 100644 --- a/templates/content_permissions.tpl +++ b/templates/content_permissions.tpl @@ -36,8 +36,8 @@ {assign var=icon value="icons/list-add"} {* custon permission icon *} {assign var=action value="remove"} {* remove permission if we have a custom one *} {/if} - {if $contentPerms.assigned.$groupId.$perm.is_excluded} - {assign var=icon value="icons/list-remove"} {* is_excluded icon *} + {if $contentPerms.assigned.$groupId.$perm.is_revoked} + {assign var=icon value="icons/list-remove"} {* is_revoked icon *} {/if} {/if} {smartlink itra=false ititle=$perm ibiticon=$icon action=$action content_id=$gContent->mContentId perm=$perm group_id=$groupId} @@ -97,7 +97,7 @@ {$permInfo.group_name} {/if} - {if $contentPerms.assigned.$groupId.$perm.is_excluded} + {if $contentPerms.assigned.$groupId.$perm.is_revoked} {biticon iname=list-remove iexplain="Removed Permission"} {else} {biticon iname=list-add iexplain="Added Permission"} -- cgit v1.3