summaryrefslogtreecommitdiffstats
path: root/apps/contacts/ajax/addcontact.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-12 15:55:36 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-12 15:55:36 +0100
commit6eb1427ac07bab9052610b32b4c5df0486d5e554 (patch)
tree0d5e50527edb8b5333bc31bda9d68986d2fd5c13 /apps/contacts/ajax/addcontact.php
parentb77132edbedfc20b975c108989c3f2ff3c8c8df6 (diff)
downloadnextcloud-server-6eb1427ac07bab9052610b32b4c5df0486d5e554.tar.gz
nextcloud-server-6eb1427ac07bab9052610b32b4c5df0486d5e554.zip
Contacts: Document usage of OC_Contacts_App::getAddressbook
Remove redundant access checks and add comments to the calls to OC_Contacts_App::getAddressbook that are access checks
Diffstat (limited to 'apps/contacts/ajax/addcontact.php')
-rw-r--r--apps/contacts/ajax/addcontact.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/ajax/addcontact.php b/apps/contacts/ajax/addcontact.php
index c39d75eff88..9b4e68ac272 100644
--- a/apps/contacts/ajax/addcontact.php
+++ b/apps/contacts/ajax/addcontact.php
@@ -40,7 +40,7 @@ OC_JSON::checkAppEnabled('contacts');
$l=new OC_L10N('contacts');
$aid = $_POST['aid'];
-$addressbook = OC_Contacts_App::getAddressbook( $aid );
+OC_Contacts_App::getAddressbook( $aid ); // is owner access check
$fn = trim($_POST['fn']);
$n = trim($_POST['n']);