Flip the request requirements
This commit is contained in:
parent
43525c79db
commit
700ba00c21
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class UpdateAccountRequest extends Request
|
|||
*/
|
||||
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…
Add table
Reference in a new issue