mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 21:44:34 -04:00
Minor fixes
This commit is contained in:
parent
1f5cc43ac6
commit
b8070a130e
@ -23,9 +23,12 @@ class UpdateDocumentRequest extends Request
|
|||||||
*
|
*
|
||||||
* @return bool
|
* @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()
|
public function rules()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user