diff options
Diffstat (limited to 'ajax/usersettings.php')
-rw-r--r-- | ajax/usersettings.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ajax/usersettings.php b/ajax/usersettings.php deleted file mode 100644 index 2602230dd..000000000 --- a/ajax/usersettings.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -/** -* ownCloud - News app -* -* @author Bernhard Posselt -* Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com> -* -* This file is licensed under the Affero General Public License version 3 or later. -* See the COPYING-README file -* -*/ - -// Check if we are a user -OCP\JSON::checkLoggedIn(); -OCP\JSON::checkAppEnabled('news'); -OCP\JSON::callCheck(); -session_write_close(); - -if(isset($_POST['showAll'])) { - if($_POST['showAll'] === 'false') { - $showAll = false; - } else { - $showAll = true; - } - OCP\Config::setUserValue(OCP\USER::getUser(), 'news', 'showAll', $showAll); -} - -OCP\JSON::success(); |