Ticket #478 (closed Bug: fixed)

Opened 9 months ago

Last modified 8 months ago

Auth Module logged_in always returns true once logged in

Reported by: SuicidalWeasel Owned by: Shadowhand
Priority: minor Milestone: 2.2
Component: Core Version: SVN HEAD
Keywords: Auth module, logged_in function Cc:

Description

In the logged_in function in the auth module, once the user has been logged in, the following two lines of code cause the function to always return true before processing the role. For example, if the function is called with the role 'admin,' it will return true before attempting to determine if the user actually has that role.

if (is_bool($status))
    return $status;

Should maybe just be:

static $status = FALSE;

Change History

Changed 9 months ago by Shadowhand

  • status changed from new to assigned

Nice catch SuicidalWeasel?.

Changed 8 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

This has been fixed in r2471.

Note: See TracTickets for help on using tickets.