phpstan
This commit is contained in:
parent
7ed2be50fd
commit
3670dc6d4b
5 changed files with 5 additions and 10 deletions
|
@ -13,6 +13,6 @@ class DownloadFileRequest extends ClientApiRequest
|
|||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->user()->can('file.read', $this->parameter('server', Server::class));
|
||||
return $this->user()->can('file.read', $this->route()->parameter('server'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue