get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document permissions{/i18n}:
{$context->oDocument->getName()|sanitize}

{i18n}This page shows the permissions that apply to this specific document. Where the folder view shows you information by role and group, this page shows the actual groups (and, if they are assigned directly to a role, the users) who have the different permissions. As a result, groups, users and roles with no permissions are not shown.{/i18n}

{if $edit} {i18n}Manage security{/i18n}: {i18n}View resolved permissions for user{/i18n} {/if} {if ((empty($roles) && empty($groups) && empty($users)))}
{i18n}No roles or groups have been defined or have permissions.{/i18n}
{else} { foreach item=oPerm from=$permissions } { /foreach } { foreach item=oRole from=$roles } { assign var=iRoleId value=$oRole->getId() } { foreach item=oPerm from=$permissions } { assign var=iPermId value=$oPerm->getId() } { assign var=bHasPerm value=$aMapPermissionRole[$iPermId][$iRoleId] } { if $bHasPerm } { else } { /if } { /foreach } { /foreach } { foreach item=oGroup from=$groups } { assign var=iGroupId value=$oGroup->getId() } { foreach item=oPerm from=$permissions } { assign var=iPermId value=$oPerm->getId() } { assign var=bHasPerm value=$aMapPermissionGroup[$iPermId][$iGroupId] } { if $bHasPerm } { else } { /if } { /foreach } { /foreach } { foreach item=oUser from=$users } { assign var=iUserId value=$oUser->getId() } { foreach item=oPerm from=$permissions } { assign var=iPermId value=$oPerm->getId() } { assign var=bHasPerm value=$aMapPermissionUser[$iPermId][$iUserId] } { if $bHasPerm } { else } { /if } { /foreach } { /foreach }
{i18n}Role or Group{/i18n}{$oPerm->getHumanName()} {assign var=iPermId value=$oPerm->getId()} {if ($workflow_controls.$iPermId)}
(workflow controlled){/if} {if ($conditions_control.$iPermId)}
(condition affected){/if}
{i18n}Role{/i18n}: {$oRole->getName()}{i18n}Allowed{/i18n}{i18n}Denied{/i18n}
{i18n}Group{/i18n}: {$oGroup->getName()}{i18n}Allowed{/i18n}{i18n}Denied{/i18n}
{i18n}User: {/i18n} {$oUser->getName()}{i18n}Allowed{/i18n}{i18n}Denied{/i18n}
{ /if }