dre1080/warden — Issue #15: Lock issue
Author: andreoav
Created: 2011-11-04 18:17:24+00:00
State: open

When:

lockable, in_use == false in the warden config file i'm getting this exception:

**File: model/user.php, line 224**

```php
elseif ($record->is_access_locked()) {
throw new Warden_Failure('locked');
}
```

The **is_access_locked()** function returns **return !$this->is_lock_expired()**, and in the function **is_lock_expired()" returns ```php false ``` when lockable is disabled... the false will be returned to the first call as true, and we have an exception even with lockable disabled