mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 15:14:36 -04:00
Flip the request requirements
This commit is contained in:
parent
43525c79db
commit
700ba00c21
@ -26,7 +26,7 @@ class UpdateAccountRequest extends Request
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return (auth()->user()->isAdmin() || auth()->user()->isOwner()) && ($this->account->id == auth()->user()->account_id);
|
return (auth()->user()->isAdmin() || auth()->user()->isOwner()) && ($this->account->id == auth()->user()->token()->account_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user