Use $this->userdata->id variable in place of Auth::(id) in controllers

This commit is contained in:
DariusIII
2018-09-24 11:28:49 +02:00
parent b7fef38afd
commit 23ab8f0334
11 changed files with 70 additions and 43 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class DetailsController extends BasePageController
}
if ($this->isPostBack()) {
ReleaseComment::addComment($data['id'], $data['gid'], \request()->input('txtAddComment'), Auth::id(), \request()->ip());
ReleaseComment::addComment($data['id'], $data['gid'], \request()->input('txtAddComment'), $this->userdata->id, \request()->ip());
}
$nfo = ReleaseNfo::getReleaseNfo($data['id']);