diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-04-18 14:29:45 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 12:42:35 +0200 |
commit | 53dc30af4fb09dabdd342ccd5dee9f20eaac52b0 (patch) | |
tree | a3aaf443b52356122bc001adee7e8a639b794b9d /settings/ajax/enableapp.php | |
parent | bf9b634fd8981e8cb11bf2c44fbe283588bc048e (diff) | |
download | nextcloud-server-53dc30af4fb09dabdd342ccd5dee9f20eaac52b0.tar.gz nextcloud-server-53dc30af4fb09dabdd342ccd5dee9f20eaac52b0.zip |
Add option to enable app for specific groups
Diffstat (limited to 'settings/ajax/enableapp.php')
-rw-r--r-- | settings/ajax/enableapp.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index 735794360b3..81ca1e0338d 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -3,8 +3,10 @@ OC_JSON::checkAdminUser(); OCP\JSON::callCheck(); +$groups = isset($_POST['groups']) ? $_POST['groups'] : null; + try { - OC_App::enable(OC_App::cleanAppId($_POST['appid'])); + OC_App::enable(OC_App::cleanAppId($_POST['appid']), $groups); OC_JSON::success(); } catch (Exception $e) { OC_Log::write('core', $e->getMessage(), OC_Log::ERROR); |