【缺陷】
authorize_document
正常
由
yanxd添加于 2014-07-21 17:57
Started GET "/projects/2/documents" for
Processing by DocumentsController#index as HTML
Parameters: {"project_id"=>"xxxxx"}
HTTP_USER_AGENT Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Completed 500 Internal Server Error in 7ms
NoMethodError (undefined method `is_public' for nil:NilClass):
app/controllers/documents_controller.rb:108:in `authorize_document'
触发条件:找一个不属于项目中的人点击document