Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Better function descriptions
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Nov 3, 2021
commit eb6217f551da044110f56c1ff69e58bad2cbdcb0
6 changes: 4 additions & 2 deletions lib/private/Profile/ProfileManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ private function getActions(IUser $targetUser, ?IUser $visitingUser): array {
}

/**
* Return whether the profile parameter is visible to the visiting user
* Return whether the profile parameter of the target user
* is visible to the visiting user
*/
private function isParameterVisible(IUser $targetUser, ?IUser $visitingUser, string $paramId): bool {
try {
Expand Down Expand Up @@ -247,7 +248,8 @@ private function isParameterVisible(IUser $targetUser, ?IUser $visitingUser, str
}

/**
* Return the profile parameters
* Return the profile parameters of the target user that are visible to the visiting user
* in an associative array
*/
public function getProfileParams(IUser $targetUser, ?IUser $visitingUser): array {
$account = $this->accountManager->getAccount($targetUser);
Expand Down