Skip to content

Commit ea9bbe7

Browse files
committed
Merge pull request #86 from hinton/3.3/develop
Refs #4730, Fixed Auth_ORM::logged_in not working if $role is an ORM object.
2 parents 93edaca + 7450f70 commit ea9bbe7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

classes/Kohana/Auth/ORM.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ public function logged_in($role = NULL)
5151
if ( ! $roles->loaded())
5252
return FALSE;
5353
}
54+
else
55+
{
56+
$roles = $role;
57+
}
5458
}
5559

5660
return $user->has('roles', $roles);

0 commit comments

Comments
 (0)