Folder permissions for "{$foldername|sanitize}"

{* check if there are roles etc *} {if ((empty($roles) && empty($groups)))}
{i18n}No roles or groups have been defined. Permissions can only be allocated to roles and groups.{/i18n}
{else} {* otherwise continue *}

{i18n}Manage security{/i18n}: {i18n}View permissions overview{/i18n} | {i18n}View resolved permissions for user{/i18n}

{if ($can_inherit)}
{i18n}This folder defines its own permissions.{/i18n} {i18n}Inherit permissions{/i18n}
{/if} {$context->oPage->requireJSResource("resources/js/jsonlookup.js")} {$context->oPage->requireJSResource("resources/js/permissions.js")} {capture assign=sJavascript}initializePermissions('entities', '{addQS}fFolderId={$context->oFolder->getId()}&action=json&json_action=getEntities{/addQS}', {$jsonpermissions});{/capture} {$context->oPage->requireJSStandalone($sJavascript)}

{i18n}Select roles and groups for whom you wish to change permission assignment from the box on the left, and move them over to the box on the right using the button with right-pointing arrows. You can then allocate or remove permissions from these entities and save by pressing the 'Update Permission Assignments' button'.{/i18n}

 

{i18n}Show All{/i18n}


{/if}
{if (!empty($conditions))} {if ($edit || $dynamic_conditions)}

{i18n}Dynamic permissions{/i18n}

{/if} { if $dynamic_conditions } { if $edit } { /if } {foreach from=$permissions item=oPerm} {/foreach} { foreach from=$dynamic_conditions item=oDynamicCondition } {php} $this->assign("oGroup", Group::get($this->_tpl_vars['oDynamicCondition']->getGroupId())); $this->assign("oCondition", KTSavedSearch::get($this->_tpl_vars['oDynamicCondition']->getConditionId())); $this->assign("aPermissions", $this->_tpl_vars['oDynamicCondition']->getAssignment()); {/php} { if $edit } {/if} {foreach from=$permissions item=oPerm} {assign var=bHasPerm value=$oPerm->getId()|in_array:$aPermissions} { if $bHasPerm } { else } { /if } {/foreach} { /foreach }
{i18n}Remove{/i18n}{i18n}Group{/i18n} {i18n}Condition{/i18n}{$oPerm->getHumanName()}
{capture assign=sQS}action=removeDynamicCondition&fFolderId={$iFolderId}&fDynamicConditionId={$oDynamicCondition->getId()}{/capture} {i18n}Delete{/i18n} {$oGroup->getName()} {$oCondition->getName()}{i18n}Allowed{/i18n}{i18n}Denied{/i18n}
{ /if } { if $edit }

{i18n}Add a new dynamic permission{/i18n}

{foreach from=$document_permissions item=oPerm} {/foreach} {entity_checkboxes entities=$document_permissions name=fPermissionIds assign=aPermissionCheckboxes method="none"} {foreach from=$aPermissionCheckboxes item=sCheckbox} {/foreach}
{i18n}Group{/i18n} {i18n}Condition{/i18n}{$oPerm->getHumanName()}
{entity_select entities=$groups name=fGroupId none=true} {entity_select entities=$conditions name=fConditionId none=true}{$sCheckbox}
{ /if } {/if}