{if !empty($perms['parent']) || $userInfo['role'] == 'operator'} {if $action=='userpost'}
查看权限
隐藏 查看
权限设置
不限权限 限定权限 注意：不限制权限，用户将拥有已分配应用内的所有菜单权限
{/if}
应用权限
{foreach $perms['parent'] as $key => $value} {$value['text']} {/foreach} 启用应用权限后，用户将拥有该应用内所有菜单权限
操作权限
{php}$i=0;{/php} {foreach $perms['parent'] as $key => $value}
展开 {$value['text']}
{if count($perms['parent'][$key]) >1} {foreach $perms['parent'][$key] as $ke => $val} {if $ke != 'text'} {:str_replace("-log", "", $val)} {else} {:str_replace("-log", "", $val)} {/if} {/foreach}
{/if} {if !empty($perms['son'][$key])} {foreach $perms['son'][$key] as $ke => $val}
{/foreach} {/if}
{php}$i++;{/php} {/foreach}
{/if}