Skip to content

Commit

Permalink
Add back method needed for some plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelfolaron committed Nov 16, 2024
1 parent fd0305b commit 8b97857
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 66 deletions.
63 changes: 0 additions & 63 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 17 additions & 3 deletions app/Domain/Projects/Repositories/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@ public function getUsersAssignedToProject($id, $includeApiUsers = false): array|
return $values;
}

/**
* Retrieves the relationship of users assigned to a specific project.
*
* @param int $id The ID of the project.
* @param bool $includeApiUsers Flag to determine whether to include API users. Default is false.
* @return array|bool Returns an array of users assigned to the project or false on failure.
*
* @Deprecated
*
*/
public function getProjectUserRelation($id, $includeApiUsers = false): array|bool {
return $this->getUsersAssignedToProject($id, $includeApiUsers);
}

public function getUserProjects(int $userId, string $projectStatus = 'all', ?int $clientId = null, string $accessStatus = 'assigned', string $projectTypes = 'all'): false|array
{

Expand Down Expand Up @@ -304,9 +318,9 @@ public function getProjectsUserHasAccessTo($userId, string $status = 'all', stri
return $values;
}

/**
* @return int|mixed
*/



/**
* @return int|mixed
*/
Expand Down

0 comments on commit 8b97857

Please sign in to comment.