mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Better function descriptions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
ee1c6eefb4
commit
eb6217f551
1 changed files with 4 additions and 2 deletions
|
|
@ -198,7 +198,8 @@ class ProfileManager {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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 {
|
||||
|
|
@ -247,7 +248,8 @@ class ProfileManager {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue