Skip to content

Commit

Permalink
Solved bug for multiple roles in logged_in() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrick Christensen committed Apr 5, 2011
1 parent b4b0398 commit c7f8428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/auth/automodeler/orm.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function logged_in($role = NULL)
{
if ( ! is_numeric($_role))
{
$_role = AutoModeler_ORM::factory('role')->load(db::select()->where('name', '=', $role))->id;
$_role = AutoModeler_ORM::factory('role')->load(db::select()->where('name', '=', $_role))->id;
}

// If the user doesn't have the role
Expand Down

0 comments on commit c7f8428

Please sign in to comment.