diff --git a/app/views/users/_resources_list.html.erb b/app/views/users/_resources_list.html.erb index 7d510d977..fd6c52dba 100644 --- a/app/views/users/_resources_list.html.erb +++ b/app/views/users/_resources_list.html.erb @@ -49,6 +49,7 @@
  • <%= attach.is_public %>
  • <%= attach.get_apply_resource_status(attach.id, attach.author_id) %>
  • +
  • <%= attach_show_allow(attach) == true ? 0 : 1 %>
  • <%= attach.id %>
  • @@ -100,7 +101,8 @@ is_public = line.children().eq(11).html(); user_id = line.children().eq(6).html(); apply_status = line.children().eq(12).html(); - if(is_public == 0 && user_id != '<%= User.current.id %>' && apply_status != 2){ + allow = line.children().eq(13).html(); + if(is_public == 0 && user_id != '<%= User.current.id %>' && apply_status != 2 && allow == 1){ alert('您无权发送私有资源') }else{ if (lastSendType === '2'){ //如果已经发送过一次了,那么就应该沿用上次发送的类型。