Browse Source

Merge pull request '修复问题' (#164) from KingChan/forgeplus:chenjing into standalone_develop

pull/347/head
KingChan 2 years ago
parent
commit
6a057dedd0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/attachments_controller.rb

+ 1
- 1
app/controllers/attachments_controller.rb View File

@@ -229,7 +229,7 @@ class AttachmentsController < ApplicationController
end
tip_exception(403, "您没有权限进入") if project.present? && !candown
end
tip_exception(403, "您没有权限查看") if project.present? && !candown if @file.is_public == 0 && author_id != current_user.id
tip_exception(403, "您没有权限查看") if @file.is_public == 0 && @file.author_id != current_user.id
end
end



Loading…
Cancel
Save