mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
feat(users): Add user creation date support (WIP)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
fd366a6d8f
commit
95d655b43a
2 changed files with 9 additions and 1 deletions
|
|
@ -634,4 +634,7 @@ class User_LDAP extends BackendUtility implements IUserBackend, UserInterface, I
|
|||
public function getDisabledUserList(?int $limit = null, int $offset = 0, string $search = ''): array {
|
||||
throw new \Exception('This is implemented directly in User_Proxy');
|
||||
}
|
||||
|
||||
public function getUserCreationDate(string $uid): ?\DateTime {
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,11 +14,12 @@ use OCP\IUserBackend;
|
|||
use OCP\Notification\IManager as INotificationManager;
|
||||
use OCP\User\Backend\ICountMappedUsersBackend;
|
||||
use OCP\User\Backend\ICountUsersBackend;
|
||||
use OCP\User\Backend\IGetUserCreationDateBackend;
|
||||
use OCP\User\Backend\IProvideEnabledStateBackend;
|
||||
use OCP\UserInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ICountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend {
|
||||
class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP, ICountUsersBackend, ICountMappedUsersBackend, IProvideEnabledStateBackend, IGetUserCreationDateBackend {
|
||||
/** @var User_LDAP[] */
|
||||
private array $backends = [];
|
||||
private ?User_LDAP $refBackend = null;
|
||||
|
|
@ -443,4 +444,8 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function getUserCreationDate(string $uid): ?\DateTime {
|
||||
return $this->handleRequest($uid, 'getUserCreationDate', [$uid]) ?: null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue