fix authroize() method

This commit is contained in:
Benjamin Beganović 2020-08-20 03:11:54 +02:00
parent f4698c0108
commit 529ce2ece8

View File

@ -13,8 +13,7 @@ class DownloadMultipleDocumentsRequest extends FormRequest
*/
public function authorize()
{
return true;
// return auth()->user()->can('view', $this->document);
return auth()->user()->can('view', $this->document);
}
/**