Update admin
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<#import "admin-shell.ftl" as shell>
|
||||
<#import "admin/admin-shell.ftl" as shell>
|
||||
<@shell.page title="后台管理 - 用户与角色" active=active adminName=adminName>
|
||||
<h2 class="ui header">用户与角色管理</h2>
|
||||
<p class="small-muted">简单 RBAC:用户可绑定多个角色,拥有 ADMIN 角色的用户可以进入后台管理。</p>
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="field">
|
||||
<div class="ui checkbox">
|
||||
<input type="checkbox" name="roleIds" value="${r.id}"
|
||||
<#if userRoleIds[u.id]?? && userRoleIds[u.id]?seq_contains(r.id)>checked</#if>>
|
||||
<#if userRoleIds[u.id?c]?? && userRoleIds[u.id?c]?seq_contains(r.id)>checked</#if>>
|
||||
<label>${r.code}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user