This function returns `null` when no user is logged-in.tags/v8.0.0alpha1
@@ -121,7 +121,7 @@ class Session implements IUserSession, Emitter { | |||
/** | |||
* get the current active user | |||
* | |||
* @return \OC\User\User | |||
* @return \OCP\IUser|null Current user, otherwise null | |||
*/ | |||
public function getUser() { | |||
if ($this->activeUser) { |
@@ -61,7 +61,7 @@ interface IUserSession { | |||
/** | |||
* get the current active user | |||
* | |||
* @return \OCP\IUser | |||
* @return \OCP\IUser|null Current user, otherwise null | |||
*/ | |||
public function getUser(); | |||