시스템 권한 수정 방식 변경.

master
강석 최 2023-01-20 14:15:36 +09:00
parent 6132e3f532
commit fdc940c758
1 changed files with 7 additions and 5 deletions

View File

@ -11,18 +11,20 @@
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/> <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
<input type="hidden" name="userSeq" id="userSeq" class="userSeq" th:value="${userInfo.userSeq}"> <input type="hidden" name="userSeq" id="userSeq" class="userSeq" th:value="${userInfo.userSeq}">
<input type="hidden" name="userStatus" th:value="${userInfo.userStatus}"> <input type="hidden" name="userStatus" th:value="${userInfo.userStatus}">
<div class="mb-3 mt-3 row"> <div class="mb-3 mt-3 row" sec:authorize="hasRole('ROLE_ADMIN')" th:classappend="${#strings.contains(userInfo.userRole, 'ROLE_ADMIN')?'d-none':''}">
<label for="userRole" class="col-sm-2 col-form-label col-form-label-sm text-center ">시스템권한</label> <label for="userRole" class="col-sm-2 col-form-label col-form-label-sm text-center ">시스템권한</label>
<div class="col-sm-4" id="userRole"> <div class="col-sm-4" id="userRole">
<label style="font-size: 12px" sec:authorize="hasRole('ROLE_ADMIN')"> <label class="fs-12 d-none">
<input type="radio" name="userRole" value="ROLE_ADMIN,ROLE_SUB_ADMIN,ROLE_USER" <input type="radio" name="userRole" value="ROLE_ADMIN,ROLE_SUB_ADMIN,ROLE_USER"
th:checked="${userInfo.userRole eq 'ROLE_ADMIN,ROLE_SUB_ADMIN,ROLE_USER'}">관리자</label> th:checked="${#strings.contains(userInfo.userRole, 'ROLE_ADMIN')}">관리계정</label>
<label style="font-size: 12px"> <label style="font-size: 12px">
<input type="radio" name="userRole" value="ROLE_SUB_ADMIN,ROLE_USER" <input type="radio" name="userRole" value="ROLE_SUB_ADMIN,ROLE_USER"
th:checked="${userInfo.userRole eq 'ROLE_SUB_ADMIN,ROLE_USER'}">서브관리자</label> th:checked="${!#strings.contains(userInfo.userRole, 'ROLE_ADMIN')
and #strings.contains(userInfo.userRole, 'ROLE_SUB_ADMIN')}">관리자</label>
<label style="font-size: 12px"> <label style="font-size: 12px">
<input type="radio" name="userRole" value="ROLE_USER" <input type="radio" name="userRole" value="ROLE_USER"
th:checked="${userInfo.userRole eq 'ROLE_USER'}">일반사용자</label> th:checked="${!#strings.contains(userInfo.userRole, 'ROLE_ADMIN')
and !#strings.contains(userInfo.userRole, 'ROLE_SUB_ADMIN')}">일반사용자</label>
</div> </div>
</div> </div>
<div class="mb-3 mt-3 row"> <div class="mb-3 mt-3 row">