ROLE_TASK_ADMIN, ROLE_USER_MANAGE 권한이 있으면 사용자승인 처리가 가능하도록 수정

main
이범준 12 months ago
parent d0f4c3d7ae
commit aa18f64eae

@ -144,8 +144,11 @@
<div class="row">
<label class="col-sm-3 col-form-label text-sm-end" for="status">상태</label>
<div class="col-sm-9">
<c:if test='${currentUser.isAdmin()}'>
<div class="form-check form-check-inline mt-3">
<c:choose>
<c:when test="${currentUser.isAdmin()
or currentUser.hasAuthorities('ROLE_TASK_ADMIN')
or currentUser.hasAuthorities('ROLE_USER_MANAGE')}">
<div class="form-check form-check-inline mt-3">
<input name="status" value="P" type="radio" data-map="STTS" class="form-check-input"/>
<label class="form-check-label" for="approved">승인</label>
</div>
@ -157,11 +160,12 @@
<input name="status" value="D" type="radio" data-map="STTS" class="form-check-input"/>
<label class="form-check-label" for="removed">삭제</label>
</div>
</c:if>
<c:if test='${!currentUser.isAdmin()}'>
<input name="status" type="hidden" data-map="STTS" class="form-control" placeholder="상태"/>
<label class="col-form-label" for=STTS></label>
</c:if>
</c:when>
<c:otherwise>
<input name="status" type="hidden" data-map="STTS" class="form-control" placeholder="상태"/>
<label class="col-form-label" for=STTS></label>
</c:otherwise>
</c:choose>
</div>
</div>
</div>

Loading…
Cancel
Save