{assign var=Rights value=$Site->getRights()} {title text="Seitenrechte"}

{$Rights->getColName('view')}
{explode var=$Site->getAttribute('pcsg.rights.view') delimiter=',' assign=gids} {assign var=name value=","} {foreach from=$gids item=gid} {if $Groups->getGroupNameById($gid)} {capture assign=name}{$name}{$Groups->getGroupNameById($gid)},{/capture} {/if} {/foreach} {$name}
{$Rights->getColName('edit')}
{explode var=$Site->getAttribute('pcsg.rights.edit') delimiter=',' assign=gids} {assign var=name value=","} {foreach from=$gids item=gid} {if $Groups->getGroupNameById($gid)} {capture assign=name}{$name}{$Groups->getGroupNameById($gid)},{/capture} {/if} {/foreach} {$name}
{$Rights->getColName('del')}
{explode var=$Site->getAttribute('pcsg.rights.delete') delimiter=',' assign=gids} {assign var=name value=","} {foreach from=$gids item=gid} {if $Groups->getGroupNameById($gid)} {capture assign=name}{$name}{$Groups->getGroupNameById($gid)},{/capture} {/if} {/foreach} {$name}
{$Rights->getColName('new')}
{explode var=$Site->getAttribute('pcsg.rights.new') delimiter=',' assign=gids} {assign var=name value=","} {foreach from=$gids item=gid} {if $Groups->getGroupNameById($gid)} {capture assign=name}{$name}{$Groups->getGroupNameById($gid)},{/capture} {/if} {/foreach} {$name}

{title text="Pluginrechte"}

{assign var=allrights value=""} {foreach from=$Rights->getCols() key=right item=itm} {if $right != 'view' && $right != 'edit' && $right != 'del' && $right != 'new' }
{$itm}
{capture assign=attributes}pcsg.rights.{$right}{/capture} {explode var=$Site->getAttribute($attributes) delimiter=',' assign=gids} {assign var=name value=","} {foreach from=$gids item=gid} {if $Groups->getGroupNameById($gid)} {capture assign=name}{$name}{$Groups->getGroupNameById($gid)},{/capture} {/if} {/foreach} {$name}
{capture assign=allrights}{$allrights},{$right}{/capture} {/if} {/foreach}

view,edit,delete,new{$allrights}