mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
refactor: change method name from getMemberships to getTeamsForUser
Signed-off-by: Cristian Scheid <cristianscheid@gmail.com>
This commit is contained in:
parent
efd348fab1
commit
ed486167d6
3 changed files with 3 additions and 3 deletions
|
|
@ -203,7 +203,7 @@ class PersonalInfo implements ISettings {
|
|||
private function getTeamMemberships(IUser $user): array {
|
||||
$teams = array_map(
|
||||
static fn (Team $team): string => $team->getDisplayName(),
|
||||
$this->teamManager->getMemberships($user->getUID())
|
||||
$this->teamManager->getTeamsForUser($user->getUID())
|
||||
);
|
||||
sort($teams);
|
||||
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ class TeamManager implements ITeamManager {
|
|||
return $this->circlesManager->getCirclesByIds($teams);
|
||||
}
|
||||
|
||||
public function getMemberships(string $userId): array {
|
||||
public function getTeamsForUser(string $userId): array {
|
||||
if (!$this->hasTeamSupport()) {
|
||||
return [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,5 +55,5 @@ interface ITeamManager {
|
|||
* @return list<Team>
|
||||
* @since 33.0.0
|
||||
*/
|
||||
public function getMemberships(string $userId): array;
|
||||
public function getTeamsForUser(string $userId): array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue