diff --git a/route/static/app/files.js b/route/static/app/files.js index 52a0cc182..2efbaa1e7 100755 --- a/route/static/app/files.js +++ b/route/static/app/files.js @@ -1592,6 +1592,22 @@ function setChmod(action,fileName){ var toExec = fileName == lan.files.all?'batch(3,1)':'setChmod(1,\''+fileName+'\')'; $.post('/files/file_access','filename='+encodeURIComponent(fileName),function(rdata){ // console.log(rdata); + var sys_users = rdata.sys_users; + var own_html = ''; + var is_find_own_option = false; + for (var i = 0; i < sys_users.length; i++) { + var own = sys_users[i]; + if (rdata.chown==own){ + is_find_own_option = true; + own_html += ''; + } else { + own_html += ''; + } + } + if (!is_find_own_option){ + own_html += ''; + } + layer.open({ type:1, closeBtn: 1, @@ -1619,10 +1635,8 @@ function setChmod(action,fileName){ \
权限,\ 所有者\ - \ + '+own_html+'\
\
\ \