diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-05 12:55:24 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-13 13:06:12 +0100 |
commit | 3eee359d7ffd6219f6a2ab8cca18a13118552842 (patch) | |
tree | 94aa2317588ce3864a3d3715330c757f61d25713 /lib/public/App | |
parent | 642606754b133a36d7715b45b243155cbb006f95 (diff) | |
download | nextcloud-server-3eee359d7ffd6219f6a2ab8cca18a13118552842.tar.gz nextcloud-server-3eee359d7ffd6219f6a2ab8cca18a13118552842.zip |
Allow to force enable apps via CLI
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/App')
-rw-r--r-- | lib/public/App/IAppManager.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php index 918c7597448..4cf8da586e1 100644 --- a/lib/public/App/IAppManager.php +++ b/lib/public/App/IAppManager.php @@ -86,10 +86,11 @@ interface IAppManager { * Enable an app for every user * * @param string $appId + * @param bool $forceEnable * @throws AppPathNotFoundException * @since 8.0.0 */ - public function enableApp($appId); + public function enableApp(string $appId, bool $forceEnable = false): void; /** * Whether a list of types contains a protected app type @@ -105,10 +106,11 @@ interface IAppManager { * * @param string $appId * @param \OCP\IGroup[] $groups + * @param bool $forceEnable * @throws \Exception * @since 8.0.0 */ - public function enableAppForGroups($appId, $groups); + public function enableAppForGroups(string $appId, array $groups, bool $forceEnable = false): void; /** * Disable an app for every user |