1、用户管理恢复用户身份标识字段配置,普通用户不能查看、新建、修改管理员用户;

2、角色管理恢复角色类型字段配置,普通用户不能查看、新建、修改管理员类型的角色。

Signed-off-by: zhangwei <zhangwei2@iie.ac.cn>
This commit is contained in:
zhangwei
2018-10-15 15:41:01 +08:00
parent b6276cdc8c
commit c59e45b996
6 changed files with 113 additions and 58 deletions

View File

@@ -106,23 +106,30 @@
</div>
<span class="help-inline"><font color="red">*</font> </span>
</div>
<input type="hidden" name="roleType" value="user"/>
<%-- <div class="form-group">
<label class="col-md-3 control-label"><spring:message code="role_type"/>:</label>
<div class="col-md-4">
<form:input path="roleType" htmlEscape="false" maxlength="50" class="required"/>
<span class="help-inline" title="activiti有3种预定义的组类型security-role、assignment、user 如果使用Activiti Explorer需要security-role才能看到manage页签需要assignment才能claim任务">
工作流组用户组类型security-role管理员、assignment可进行任务分配、user普通用户</span>
<form:select path="roleType" class="form-control">
<form:option value="assignment"><spring:message code="task_allot"/></form:option>
<form:option value="security-role"><spring:message code="manager"/></form:option>
<form:option value="user"><spring:message code="ordinary_man"/></form:option>
</form:select>
<span class="help-inline" title="activiti有3种预定义的组类型security-role、assignment、user 如果使用Activiti Explorer需要security-role才能看到manage页签需要assignment才能claim任务">
<spring:message code="role_type_info"/></span>
</div>
</div>
--%>
<c:choose>
<c:when test="${fns:getUser().identity eq 1}">
<div class="form-group">
<label class="col-md-3 control-label"><spring:message code="role_type"/>:</label>
<div class="col-md-4">
<!-- <form:input path="roleType" htmlEscape="false" maxlength="50" class="required"/>
<span class="help-inline" title="activiti有3种预定义的组类型security-role、assignment、user 如果使用Activiti Explorer需要security-role才能看到manage页签需要assignment才能claim任务">
工作流组用户组类型security-role管理员、assignment可进行任务分配、user普通用户</span> -->
<form:select path="roleType" class="form-control">
<%-- <form:option value="assignment"><spring:message code="task_allot"/></form:option> --%>
<form:option value="security-role"><spring:message code="manager"/></form:option>
<form:option value="user"><spring:message code="ordinary_man"/></form:option>
</form:select>
<%-- <span class="help-inline" title="activiti有3种预定义的组类型security-role、assignment、user 如果使用Activiti Explorer需要security-role才能看到manage页签需要assignment才能claim任务">
<spring:message code="role_type_info"/></span> --%>
</div>
</div>
</c:when>
<c:otherwise>
<input type="hidden" name="roleType" value="user"/>
</c:otherwise>
</c:choose>
<div class="form-group">
<label class="col-md-3 control-label"><spring:message code="data_range"/>:</label>