Fixes for user updating their own record
This commit is contained in:
parent
d55a5df148
commit
ab3e635447
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class UpdateUserRequest extends Request
|
|||
*/
|
||||
public function authorize() : bool
|
||||
{
|
||||
return auth()->user()->id === $this->id || auth()->user()->isAdmin();
|
||||
return auth()->user()->id == $this->user->id || auth()->user()->isAdmin();
|
||||
}
|
||||
|
||||
public function rules()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue