mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
enh(TextToImage): Allow anonymous access to IManager#getUserTasksByApp
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
f52d763f50
commit
e8faaebb0f
3 changed files with 4 additions and 4 deletions
|
|
@ -89,7 +89,7 @@ class TaskMapper extends QBMapper {
|
|||
* @return array
|
||||
* @throws Exception
|
||||
*/
|
||||
public function findUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array {
|
||||
public function findUserTasksByApp(?string $userId, string $appId, ?string $identifier = null): array {
|
||||
$qb = $this->db->getQueryBuilder();
|
||||
$qb->select(Task::$columns)
|
||||
->from($this->tableName)
|
||||
|
|
|
|||
|
|
@ -267,7 +267,7 @@ class Manager implements IManager {
|
|||
* @param string|null $identifier
|
||||
* @return Task[]
|
||||
*/
|
||||
public function getUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array {
|
||||
public function getUserTasksByApp(?string $userId, string $appId, ?string $identifier = null): array {
|
||||
try {
|
||||
$taskEntities = $this->taskMapper->findUserTasksByApp($userId, $appId, $identifier);
|
||||
return array_map(static function (DbTask $taskEntity) {
|
||||
|
|
|
|||
|
|
@ -88,11 +88,11 @@ interface IManager {
|
|||
public function getUserTask(int $id, ?string $userId): Task;
|
||||
|
||||
/**
|
||||
* @param string $userId
|
||||
* @param ?string $userId
|
||||
* @param string $appId
|
||||
* @param string|null $identifier
|
||||
* @return Task[]
|
||||
* @since 28.0.0
|
||||
*/
|
||||
public function getUserTasksByApp(string $userId, string $appId, ?string $identifier = null): array;
|
||||
public function getUserTasksByApp(?string $userId, string $appId, ?string $identifier = null): array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue