• 根据管理员的权限显示

    根据管理员的权限显示

    前端检测权限显示按钮 例子:

    1. <if condition="\Libs\System\RBAC::ableAccess('Content', 'Content', 'edit')">
    2. <a href="javascript:;;" onClick="javascript:openwinx('{:U("Content/edit", ["catid" =>$vo['catid'] , "id" => $vo["id"]])}')">修改</a>
    3. |
    4. </if>
    5. <if condition="\Libs\System\RBAC::ableAccess('Content', 'Content', 'delete')">
    6. <a href="{:U('Content/delete',array('catid'=>$vo['catid'],'id'=>$vo['id']))}" class="J_ajax_del" >删除</a>
    7. </if>