diff options
Diffstat (limited to 'apps/contacts/ajax/updateaddressbook.php')
-rw-r--r-- | apps/contacts/ajax/updateaddressbook.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/contacts/ajax/updateaddressbook.php b/apps/contacts/ajax/updateaddressbook.php index 7d9e2aea917..d6c1ad179bb 100644 --- a/apps/contacts/ajax/updateaddressbook.php +++ b/apps/contacts/ajax/updateaddressbook.php @@ -15,6 +15,7 @@ OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('contacts'); $bookid = $_POST['id']; +OC_Contacts_App::getAddressbook($bookid); // is owner access check if(!OC_Contacts_Addressbook::edit($bookid, $_POST['name'], null)) { OC_JSON::error(array('data' => array('message' => $l->t('Error updating addressbook.')))); |