Skip to content

Commit 7dd938d

Browse files
Reinbierduellsy
authored andcommitted
Update RevisionableTrait.php
1 parent e8a89ce commit 7dd938d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Venturecraft/Revisionable/RevisionableTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,8 @@ public function getSystemUserId()
326326
|| class_exists($class = '\Cartalyst\Sentinel\Laravel\Facades\Sentinel')
327327
) {
328328
return ($class::check()) ? $class::getUser()->id : null;
329+
} elseif (function_exists('backpack_auth') && backpack_auth()->check()) {
330+
return backpack_user()->id;
329331
} elseif (\Auth::check()) {
330332
return \Auth::user()->getAuthIdentifier();
331333
}

0 commit comments

Comments
 (0)