From 2f9751c30cee795294408e028cef1a28fc3f2a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=A9rio=20vieira=20da=20silva?= Date: Sat, 5 Sep 2015 20:15:14 -0300 Subject: [PATCH] Update Auditing.php --- src/OwenIt/Auditing/Auditing.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/OwenIt/Auditing/Auditing.php b/src/OwenIt/Auditing/Auditing.php index ce7a8e26..aad93ba8 100644 --- a/src/OwenIt/Auditing/Auditing.php +++ b/src/OwenIt/Auditing/Auditing.php @@ -247,14 +247,10 @@ public function audit(array $log) * * @return null */ - private function getUserId() + protected function getUserId() { try { - if (class_exists($class = '\Cartalyst\Sentry\Facades\Laravel\Sentry') - || class_exists($class = '\Cartalyst\Sentinel\Laravel\Facades\Sentinel') - ) { - return ($class::check()) ? $class::getUser()->id : null; - } elseif (\Auth::check()) { + } if (\Auth::check()) { return \Auth::user()->getAuthIdentifier(); } } catch (\Exception $e) {