From 7589a4d8a0cb201e368b62d62ed0412c77a52b5f Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Tue, 11 Sep 2007 22:49:59 +0000 Subject: add tri-state permissioning to assignment to allow overriding of default to force always allow/deny, regardless of assignment --- templates/content_permissions.tpl | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'templates/content_permissions.tpl') diff --git a/templates/content_permissions.tpl b/templates/content_permissions.tpl index d1f6d1b..2166db3 100644 --- a/templates/content_permissions.tpl +++ b/templates/content_permissions.tpl @@ -38,12 +38,12 @@ {assign var=action value="assign"} {* default action *} {if $groupInfo.perms.$perm} {* global active permissions *} {assign var=icon value="dialog-ok"} {* default active permission icon *} - {if $contentPerms.assigned.$groupId.$perm} - {assign var=icon value="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_revoked} {assign var=icon value="list-remove"} {* is_revoked icon *} + {assign var=action value="remove"} {* remove permission if we have a custom one *} + {elseif $contentPerms.assigned.$groupId.$perm} + {assign var=icon value="list-add"} {* custon permission icon *} + {assign var=action value="negate"} {* remove permission if we have a custom one *} {/if} {/if} @@ -63,14 +63,13 @@ {/foreach} - {if count($contentPerms.groups) gt 10} -

{tr}Legend{/tr}

-
- {foreach from=$contentPerms.groups item=group} -
{$group.group_name|truncate:4:false}
-
{$group.group_name}: {$group.group_desc}
- {/foreach} -
- {/if} +

{tr}Legend{/tr}

+ +
+
{biticon iname="list-add" iexplain=""} Custom Permission: Always Allow
+
{biticon iname="list-remove" iexplain=""} Custom Permission: Always Deny
+
{biticon iname="dialog-ok" iexplain=""} Global Permission: Allow
+
{biticon iname="media-playback-stop" iexplain=""} Global Permission: Deny
+
-- cgit v1.3