Commit fde0a651868967f4244dad1dcd06d6554576fa90

Authored by conradverm
1 parent ebcc92c0

KTS-2178

"cross site scripting"
Updated.

Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6944 c91229c3-7414-0410-bfa2-8a42b809f60b
templates/ktcore/folder/roles.smarty
1 -<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Allocate Roles for{/i18n}:<br />{$folderName}</h2> 1 +<h2><img src="{if $config->get("ui/morphEnabled") == '1'}{$rootUrl}/skins/kts_{$config->get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Allocate Roles for{/i18n}:<br />{$folderName|sanitize}</h2>
2 2
3 <p class="descriptiveText">{i18n} 3 <p class="descriptiveText">{i18n}
4 In many cases, workflow actions will be assigned to certain <strong>roles</strong> 4 In many cases, workflow actions will be assigned to certain <strong>roles</strong>
@@ -14,7 +14,7 @@ role allocations may take a some time, depending on the number of folders below @@ -14,7 +14,7 @@ role allocations may take a some time, depending on the number of folders below
14 <tr> 14 <tr>
15 <th>{i18n}Role{/i18n}</th> 15 <th>{i18n}Role{/i18n}</th>
16 <th>{i18n}Allocated users{/i18n}</th> 16 <th>{i18n}Allocated users{/i18n}</th>
17 - <th class="centered">{i18n}Edit Users{/i18n}</th> 17 + <th class="centered">{i18n}Edit Users{/i18n}</th>
18 <th class="centered">{i18n}Edit Groups{/i18n}</th> 18 <th class="centered">{i18n}Edit Groups{/i18n}</th>
19 {if !$is_root}<th class="centered">{i18n}Use Parent{/i18n}</th>{/if} 19 {if !$is_root}<th class="centered">{i18n}Use Parent{/i18n}</th>{/if}
20 </tr> 20 </tr>
@@ -29,7 +29,7 @@ role allocations may take a some time, depending on the number of folders below @@ -29,7 +29,7 @@ role allocations may take a some time, depending on the number of folders below
29 <strong>{i18n}inherited from parent folder.{/i18n}</strong><br /> 29 <strong>{i18n}inherited from parent folder.{/i18n}</strong><br />
30 <span class="descriptiveText"> 30 <span class="descriptiveText">
31 {/if} 31 {/if}
32 - {if ($aRole.users != null)}<strong>{i18n}Users{/i18n}:</strong> {$aRole.users}<br />{/if} 32 + {if ($aRole.users != null)}<strong>{i18n}Users{/i18n}:</strong> {$aRole.users}<br />{/if}
33 {if ($aRole.groups != null)}<strong>{i18n}Groups{/i18n}:</strong> {$aRole.groups}{/if} 33 {if ($aRole.groups != null)}<strong>{i18n}Groups{/i18n}:</strong> {$aRole.groups}{/if}
34 {if ($aRole.allocation_id === null)} 34 {if ($aRole.allocation_id === null)}
35 </span class="descriptiveText"> 35 </span class="descriptiveText">
@@ -41,11 +41,11 @@ role allocations may take a some time, depending on the number of folders below @@ -41,11 +41,11 @@ role allocations may take a some time, depending on the number of folders below
41 <td class="centered"><a href="{addQS}action=editRoleUsers&alloc_id={$aRole.allocation_id}&fFolderId={$context->oFolder->getId()}&role_id={$role_id}{/addQS}" class="ktAction ktEdit" title="{i18n}Edit Users{/i18n}">{i18n}Edit Users{/i18n}</a></td> 41 <td class="centered"><a href="{addQS}action=editRoleUsers&alloc_id={$aRole.allocation_id}&fFolderId={$context->oFolder->getId()}&role_id={$role_id}{/addQS}" class="ktAction ktEdit" title="{i18n}Edit Users{/i18n}">{i18n}Edit Users{/i18n}</a></td>
42 <td class="centered"><a href="{addQS}action=editRoleGroups&alloc_id={$aRole.allocation_id}&fFolderId={$context->oFolder->getId()}&role_id={$role_id}{/addQS}" class="ktAction ktEdit" title="{i18n}Edit Groups{/i18n}">{i18n}Edit Groups{/i18n}</a></td> 42 <td class="centered"><a href="{addQS}action=editRoleGroups&alloc_id={$aRole.allocation_id}&fFolderId={$context->oFolder->getId()}&role_id={$role_id}{/addQS}" class="ktAction ktEdit" title="{i18n}Edit Groups{/i18n}">{i18n}Edit Groups{/i18n}</a></td>
43 {if !$is_root} 43 {if !$is_root}
44 - <td class="centered"><a href="{addQS}action=useParent&role_id={$role_id}&fFolderId={$context->oFolder->getId()}{/addQS}" class="ktAction ktDelete"  
45 - kt:deleteMessage="{i18n}Are you sure you wish to remove this role allocation?{/i18n}" 44 + <td class="centered"><a href="{addQS}action=useParent&role_id={$role_id}&fFolderId={$context->oFolder->getId()}{/addQS}" class="ktAction ktDelete"
  45 + kt:deleteMessage="{i18n}Are you sure you wish to remove this role allocation?{/i18n}"
46 title="{i18n}Use parent's allocation{/i18n}">{i18n}Use parent's allocation{/i18n}</a></td> 46 title="{i18n}Use parent's allocation{/i18n}">{i18n}Use parent's allocation{/i18n}</a></td>
47 {/if} 47 {/if}
48 - {/if} 48 + {/if}
49 </tr> 49 </tr>
50 {/foreach} 50 {/foreach}
51 {else} 51 {else}