Commit 993339f0 by Qiang Xue

Fixes #2842

parent 681507d7
......@@ -495,10 +495,11 @@ abstract class Application extends Module
/**
* Returns the auth manager for this application.
* @return \yii\rbac\Manager the auth manager for this application.
* Null will be returned if "authManager" is not installed.
*/
public function getAuthManager()
{
return $this->get('authManager');
return $this->get('authManager', false);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment