summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/chooseaddressbook.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2011-12-16 17:42:07 +0100
committerThomas Tanghus <thomas@tanghus.net>2011-12-16 17:42:07 +0100
commitfeeb0c742a57eb542f6e904dd4c8b5310bcc066a (patch)
tree8d422f84371d865dcdcdc60d95d4c3fcccd8b8e2 /apps/contacts/ajax/chooseaddressbook.php
parent59ad0a6c9c9862792ec92f9ab53dfc30d54867fa (diff)
downloadnextcloud-server-feeb0c742a57eb542f6e904dd4c8b5310bcc066a.tar.gz
nextcloud-server-feeb0c742a57eb542f6e904dd4c8b5310bcc066a.zip
Misc. changes after review by bartv.
Diffstat (limited to 'apps/contacts/ajax/chooseaddressbook.php')
-rw-r--r--apps/contacts/ajax/chooseaddressbook.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/contacts/ajax/chooseaddressbook.php b/apps/contacts/ajax/chooseaddressbook.php
index f74b580eae7..b0a10bb3118 100644
--- a/apps/contacts/ajax/chooseaddressbook.php
+++ b/apps/contacts/ajax/chooseaddressbook.php
@@ -8,9 +8,7 @@
require_once('../../../lib/base.php');
$l10n = new OC_L10N('contacts');
-if(!OC_USER::isLoggedIn()) {
- die("<script type=\"text/javascript\">document.location = oc_webroot;</script>");
-}
+OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$output = new OC_TEMPLATE("contacts", "part.chooseaddressbook");