Skip to content

Commit 2f9751c

Browse files
committed
Update Auditing.php
1 parent c3d3c13 commit 2f9751c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/OwenIt/Auditing/Auditing.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,10 @@ public function audit(array $log)
247247
*
248248
* @return null
249249
*/
250-
private function getUserId()
250+
protected function getUserId()
251251
{
252252
try {
253-
if (class_exists($class = '\Cartalyst\Sentry\Facades\Laravel\Sentry')
254-
|| class_exists($class = '\Cartalyst\Sentinel\Laravel\Facades\Sentinel')
255-
) {
256-
return ($class::check()) ? $class::getUser()->id : null;
257-
} elseif (\Auth::check()) {
253+
} if (\Auth::check()) {
258254
return \Auth::user()->getAuthIdentifier();
259255
}
260256
} catch (\Exception $e) {

0 commit comments

Comments
 (0)