mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Use $this->userdata->id variable in place of Auth::(id) in controllers
This commit is contained in:
@@ -128,7 +128,7 @@ class ProfileController extends BasePageController
|
||||
|
||||
$action = $request->input('action') ?? 'view';
|
||||
|
||||
$userid = Auth::id();
|
||||
$userid = $this->userdata->id;
|
||||
$data = User::find($userid);
|
||||
if (! $data) {
|
||||
$this->show404('No such user!');
|
||||
|
||||
Reference in New Issue
Block a user