diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-17 14:06:42 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-11-24 12:46:38 +0100 |
commit | 89094c76cfe65bd286ec4f169c91d544bc7e9943 (patch) | |
tree | bbaf2a176e2e3692519167cce6082e66f0b9921b /apps/dashboard/lib/Controller/DashboardApiController.php | |
parent | 3fa43a529bbef075364666c5122e7ad18d34de62 (diff) | |
download | nextcloud-server-89094c76cfe65bd286ec4f169c91d544bc7e9943.tar.gz nextcloud-server-89094c76cfe65bd286ec4f169c91d544bc7e9943.zip |
enh(noid): reasonabley limit amount of possible dashboard widget items
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dashboard/lib/Controller/DashboardApiController.php')
-rw-r--r-- | apps/dashboard/lib/Controller/DashboardApiController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php index 35db52225da..c95979e667d 100644 --- a/apps/dashboard/lib/Controller/DashboardApiController.php +++ b/apps/dashboard/lib/Controller/DashboardApiController.php @@ -127,7 +127,8 @@ class DashboardApiController extends OCSController { * Get the items for the widgets * * @param array<string, string> $sinceIds Array indexed by widget Ids, contains date/id from which we want the new items - * @param int $limit Limit number of result items per widget + * @param int $limit Limit number of result items per widget, not more than 30 are allowed + * @psalm-param int<1, 30> $limit * @param string[] $widgets Limit results to specific widgets * @return DataResponse<Http::STATUS_OK, array<string, DashboardWidgetItems>, array{}> * |