From e901becfe69b79644441e9403b3b67361d9918f0 Mon Sep 17 00:00:00 2001 From: huang Date: Fri, 20 May 2016 18:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E9=80=81=E6=9D=83=E9=99=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_resources_list.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'){ //如果已经发送过一次了,那么就应该沿用上次发送的类型。