Skip to content

Commit

Permalink
Merge pull request #195 from VentureCraft/develop
Browse files Browse the repository at this point in the history
Added support for SleepingOwl Admin authentication
  • Loading branch information
duellsy committed Jan 11, 2016
2 parents 99c27d9 + b703b3f commit ab29003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Venturecraft/Revisionable/RevisionableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ public function postDelete()
public function getUserId()
{
try {
if (class_exists($class = '\Cartalyst\Sentry\Facades\Laravel\Sentry')
if (class_exists($class = '\SleepingOwl\AdminAuth\Facades\AdminAuth')
|| class_exists($class = '\Cartalyst\Sentry\Facades\Laravel\Sentry')
|| class_exists($class = '\Cartalyst\Sentinel\Laravel\Facades\Sentinel')
) {
return ($class::check()) ? $class::getUser()->id : null;
Expand Down

0 comments on commit ab29003

Please sign in to comment.