Ticket #478 (closed Bug: fixed)
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
Note: See
TracTickets for help on using
tickets.
