summaryrefslogtreecommitdiffstats
path: root/lib/public/Dashboard
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-06-22 15:53:12 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-06-22 21:58:13 +0200
commit523572fcea39814794399aab46239e068ba54a22 (patch)
tree63f74df8850157427389a0b3cb935c565b8ec793 /lib/public/Dashboard
parentb282fe1e6f5587a6440d170df245ad5acb8dc976 (diff)
downloadnextcloud-server-523572fcea39814794399aab46239e068ba54a22.tar.gz
nextcloud-server-523572fcea39814794399aab46239e068ba54a22.zip
load widgets only of enabled apps
- per design, all enabled apps have their registration run - limitations, e.g. enabled by group, are not considered in that state, because we do not have a session (and might need apps?) - before instantiation of widget it has to be checked whether the providing app is actually enabled for the logged in user. - a public interface is being changed, but it is not meant to be implemented or used outside of the core handling. Therefore save to backport. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/public/Dashboard')
-rw-r--r--lib/public/Dashboard/IManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Dashboard/IManager.php b/lib/public/Dashboard/IManager.php
index 396624876ef..d9e73c89eb9 100644
--- a/lib/public/Dashboard/IManager.php
+++ b/lib/public/Dashboard/IManager.php
@@ -36,7 +36,7 @@ interface IManager {
* @param string $widgetClass
* @since 20.0.0
*/
- public function lazyRegisterWidget(string $widgetClass): void;
+ public function lazyRegisterWidget(string $widgetClass, string $appId): void;
/**
* @since 20.0.0