diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-10-01 01:10:08 +0400 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-10-01 01:17:30 +0400 |
commit | 9a5d517ec2d90698c98cf57cd5a12b4d1a40f53f (patch) | |
tree | 6769a9c99d3ed09daa5453830a3a7cefa824433e /settings | |
parent | f4782a76907cf010faf9f4cd7deb3a67a2d02de9 (diff) |
Add more checks for admin user
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/disableapp.php | 1 | ||||
-rw-r--r-- | settings/ajax/enableapp.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php index 12f6b32a4f3..06dd3c2ac6b 100644 --- a/settings/ajax/disableapp.php +++ b/settings/ajax/disableapp.php @@ -1,6 +1,7 @@ <?php // Init owncloud require_once('../../lib/base.php'); +OC_JSON::checkAdminUser(); OC_JSON::setContentTypeHeader(); OC_App::disable($_POST['appid']); diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index 8be80cd2ece..639df2aecc0 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -2,6 +2,7 @@ // Init owncloud require_once('../../lib/base.php'); +OC_JSON::checkAdminUser(); OC_JSON::setContentTypeHeader(); OC_App::enable($_POST['appid']); |