diff options
author | icewind1991 <robin@icewind.nl> | 2014-06-03 19:01:12 +0200 |
---|---|---|
committer | icewind1991 <robin@icewind.nl> | 2014-06-03 19:01:12 +0200 |
commit | cdf8a123e7133fdb59991ee1bc830e625727460f (patch) | |
tree | 90fb931f8f0adccd8687c154723e53d5fb3e7dec /settings/ajax | |
parent | e4c3ff03d60d5b541e483050174b1b7456e4babd (diff) | |
parent | a3202f1f031b443433aefc74958b268ceae3e024 (diff) | |
download | nextcloud-server-cdf8a123e7133fdb59991ee1bc830e625727460f.tar.gz nextcloud-server-cdf8a123e7133fdb59991ee1bc830e625727460f.zip |
Merge pull request #8264 from owncloud/app-enable-by-group
Add the option to enable apps only for specific groups
Diffstat (limited to 'settings/ajax')
-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); |