mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Minor fixes
This commit is contained in:
parent
1f5cc43ac6
commit
b8070a130e
@ -23,9 +23,12 @@ class UpdateDocumentRequest extends Request
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function authorize() : bool
|
||||
public function authorize(): bool
|
||||
{
|
||||
return auth()->user()->can('edit', $this->document);
|
||||
/** @var \App\Models\User $user */
|
||||
$user = auth()->user();
|
||||
|
||||
return $user->can('edit', $this->document);
|
||||
}
|
||||
|
||||
public function rules()
|
||||
|
Loading…
x
Reference in New Issue
Block a user