|
@@ -724,7 +724,7 @@ function retrieveMemoData() {
|
|
|
contents = datas.forEach(function(d) {
|
|
|
html += "<tr>";
|
|
|
html += "<td>" + gridDateFormatter(d.recordedDate) + "</td>";
|
|
|
- if (d.canModify) {
|
|
|
+ if (d.canModify && d.recordedById === "${data._SES_ID}") {
|
|
|
const clickEventListener ='handleModifyMemo("'+d.idx+'","'+d.recordedDate+'")';
|
|
|
html += "<td><pre id='memo_"+d.idx+"' class='contentsEdit' onClick='"+clickEventListener+"'>" + d.contents + "</pre></td>";
|
|
|
}
|
|
@@ -1816,13 +1816,14 @@ $(document).ready(function() {
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<c:set var="memoTotal" value="${memoResult.size()}" />
|
|
|
+ <c:set var="loginId" value="${data._SES_ID}" />
|
|
|
<c:choose>
|
|
|
<c:when test="${memoTotal > 0}">
|
|
|
<c:forEach var="d" items="${memoResult}">
|
|
|
<tr>
|
|
|
<td><c:out value="${d.recordedDateFormatted}" /></td>
|
|
|
<c:choose>
|
|
|
- <c:when test="${d.canModify}">
|
|
|
+ <c:when test="${d.canModify && d.recordedById.equals(loginId)}">
|
|
|
<td><pre id='memo_${d.idx}' class='contentsEdit' onClick='handleModifyMemo("${d.idx}", "${d.recordedDate}")'>${d.contents}</pre></td>
|
|
|
</c:when>
|
|
|
<c:otherwise>
|