summaryrefslogtreecommitdiff
path: root/templates/content_permissions.tpl
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-09-11 22:49:59 +0000
committerChristian Fowler <spider@viovio.com>2007-09-11 22:49:59 +0000
commit7589a4d8a0cb201e368b62d62ed0412c77a52b5f (patch)
treef42bfc8cef506d7048fd8ce4587d02c640da9d5e /templates/content_permissions.tpl
parentbbd46c33fc4229b02a5394d3e89143db50d85b75 (diff)
downloadliberty-7589a4d8a0cb201e368b62d62ed0412c77a52b5f.tar.gz
liberty-7589a4d8a0cb201e368b62d62ed0412c77a52b5f.tar.bz2
liberty-7589a4d8a0cb201e368b62d62ed0412c77a52b5f.zip
add tri-state permissioning to assignment to allow overriding of default to force always allow/deny, regardless of assignment
Diffstat (limited to 'templates/content_permissions.tpl')
-rw-r--r--templates/content_permissions.tpl25
1 files changed, 12 insertions, 13 deletions
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}
</table>
- {if count($contentPerms.groups) gt 10}
- <h2>{tr}Legend{/tr}</h2>
- <dl>
- {foreach from=$contentPerms.groups item=group}
- <dt>{$group.group_name|truncate:4:false}</dt>
- <dd>{$group.group_name}: {$group.group_desc}</dd>
- {/foreach}
- </dl>
- {/if}
+ <h2>{tr}Legend{/tr}</h2>
+
+ <dl>
+ <dt>{biticon iname="list-add" iexplain=""} Custom Permission: Always Allow</dt>
+ <dt>{biticon iname="list-remove" iexplain=""} Custom Permission: Always Deny</dt>
+ <dt>{biticon iname="dialog-ok" iexplain=""} Global Permission: Allow</dt>
+ <dt>{biticon iname="media-playback-stop" iexplain=""} Global Permission: Deny</dt>
+ </dl>
</div><!-- end .body -->
</div><!-- end .liberty -->