Skip to content

Commit

Permalink
Update Auditing.php
Browse files Browse the repository at this point in the history
  • Loading branch information
anteriovieira committed Sep 5, 2015
1 parent c3d3c13 commit 2f9751c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/OwenIt/Auditing/Auditing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f9751c

Please sign in to comment.