Fix check that API user is enabled

This commit is contained in:
Matthew Noorenberghe 2017-03-20 17:16:24 -07:00
parent badbf1c74c
commit ea558c79a0
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class AppController extends Controller {
if( ! $this->Session->Read('user.Username') ) {
throw new UnauthorizedException(__('Not Authenticated'));
return;
} else if ( ! $this->Session->Read('user.Username') ) {
} else if ( ! $this->Session->Read('user.Enabled') ) {
throw new UnauthorizedException(__('User is not enabled'));
return;
}