resolved_permissions_user.smarty
1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<h2>{i18n arg_foldername=$foldername}Resolved permissions per user for "#foldername#"{/i18n}</h2>
<p class="descriptiveText">{i18n}This page shows the permissions that
individual users have on this folder. Only the users which have permissions
assigned are shown.{/i18n}</p>
<p class="descriptiveText">{i18n}Users may have permissions on this
folder due to membership of a group, or fulfilling a specific role on
this folder.{/i18n}</p>
{if (empty($users)) }
<div class="ktInfo"><p>{i18n}No users have permissions on this item.{/i18n}</p></div>
{else}
<p>{i18n}Manage security{/i18n}: <a href="{addQS}action=edit&fFolderId={$oFolder->getId()}{/addQS}">{i18n}Edit permissions{/i18n}</a></p>
<table class="kt_collection"cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th width="40%">{i18n}User{/i18n}</th>
{ foreach item=oPerm from=$permissions }
<th title="{$oPerm->getName()}" class="centered">{$oPerm->getHumanName()}</th>
{ /foreach }
</tr>
</thead>
<tbody>
{ foreach item=oUser from=$users }
<td><span class="descriptiveText">{i18n}User: {/i18n}</span> {$oUser->getName()}</td>
{ 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 }
<td class="centered"><span class="ktAction ktInline ktAllowed">{i18n}Allowed{/i18n}</span></td>
{ else }
<td class="centered"><span class="ktAction ktInline ktDenied">{i18n}Denied{/i18n}</span></td>
{ /if }
{ /foreach }
</tr>
{ /foreach }
</tbody>
</table>
{ /if }