Skip to content

Commit 8b97857

Browse files
committed
Add back method needed for some plugins
1 parent fd0305b commit 8b97857

File tree

2 files changed

+17
-66
lines changed

2 files changed

+17
-66
lines changed

.idea/php.xml

-63
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/Domain/Projects/Repositories/Projects.php

+17-3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,20 @@ public function getUsersAssignedToProject($id, $includeApiUsers = false): array|
143143
return $values;
144144
}
145145

146+
/**
147+
* Retrieves the relationship of users assigned to a specific project.
148+
*
149+
* @param int $id The ID of the project.
150+
* @param bool $includeApiUsers Flag to determine whether to include API users. Default is false.
151+
* @return array|bool Returns an array of users assigned to the project or false on failure.
152+
*
153+
* @Deprecated
154+
*
155+
*/
156+
public function getProjectUserRelation($id, $includeApiUsers = false): array|bool {
157+
return $this->getUsersAssignedToProject($id, $includeApiUsers);
158+
}
159+
146160
public function getUserProjects(int $userId, string $projectStatus = 'all', ?int $clientId = null, string $accessStatus = 'assigned', string $projectTypes = 'all'): false|array
147161
{
148162

@@ -304,9 +318,9 @@ public function getProjectsUserHasAccessTo($userId, string $status = 'all', stri
304318
return $values;
305319
}
306320

307-
/**
308-
* @return int|mixed
309-
*/
321+
322+
323+
310324
/**
311325
* @return int|mixed
312326
*/

0 commit comments

Comments
 (0)