diff options
Diffstat (limited to 'apps/contacts/ajax')
-rw-r--r-- | apps/contacts/ajax/addcard.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/addproperty.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/deletebook.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/deletecard.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/deleteproperty.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/getdetails.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/setproperty.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/showaddcard.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/showaddproperty.php | 1 | ||||
-rw-r--r-- | apps/contacts/ajax/showsetproperty.php | 1 |
10 files changed, 10 insertions, 0 deletions
diff --git a/apps/contacts/ajax/addcard.php b/apps/contacts/ajax/addcard.php index cfae3327f56..ee95513732d 100644 --- a/apps/contacts/ajax/addcard.php +++ b/apps/contacts/ajax/addcard.php @@ -28,6 +28,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $addressbook = OC_Contacts_Addressbook::find( $aid ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ diff --git a/apps/contacts/ajax/addproperty.php b/apps/contacts/ajax/addproperty.php index 5a37f77f858..0b218c6298f 100644 --- a/apps/contacts/ajax/addproperty.php +++ b/apps/contacts/ajax/addproperty.php @@ -28,6 +28,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ diff --git a/apps/contacts/ajax/deletebook.php b/apps/contacts/ajax/deletebook.php index 13be33eb5a9..c13217ef2e2 100644 --- a/apps/contacts/ajax/deletebook.php +++ b/apps/contacts/ajax/deletebook.php @@ -29,6 +29,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $addressbook = OC_Contacts_Addressbook::find( $id ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ diff --git a/apps/contacts/ajax/deletecard.php b/apps/contacts/ajax/deletecard.php index c69638320ed..a0a6b8c3ea8 100644 --- a/apps/contacts/ajax/deletecard.php +++ b/apps/contacts/ajax/deletecard.php @@ -29,6 +29,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ diff --git a/apps/contacts/ajax/deleteproperty.php b/apps/contacts/ajax/deleteproperty.php index 40b765cf845..0a3a3c293a0 100644 --- a/apps/contacts/ajax/deleteproperty.php +++ b/apps/contacts/ajax/deleteproperty.php @@ -31,6 +31,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ diff --git a/apps/contacts/ajax/getdetails.php b/apps/contacts/ajax/getdetails.php index 47d88a771e6..0e76de61afb 100644 --- a/apps/contacts/ajax/getdetails.php +++ b/apps/contacts/ajax/getdetails.php @@ -29,6 +29,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); diff --git a/apps/contacts/ajax/setproperty.php b/apps/contacts/ajax/setproperty.php index b4fc2162d90..18e00872473 100644 --- a/apps/contacts/ajax/setproperty.php +++ b/apps/contacts/ajax/setproperty.php @@ -29,6 +29,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ diff --git a/apps/contacts/ajax/showaddcard.php b/apps/contacts/ajax/showaddcard.php index 58567392d7c..2f534f0fe2d 100644 --- a/apps/contacts/ajax/showaddcard.php +++ b/apps/contacts/ajax/showaddcard.php @@ -27,6 +27,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $addressbooks = OC_Contacts_Addressbook::all(OC_USER::getUser()); $tmpl = new OC_Template('contacts','part.addcardform'); diff --git a/apps/contacts/ajax/showaddproperty.php b/apps/contacts/ajax/showaddproperty.php index 0d01b37d8ef..f87cd05359b 100644 --- a/apps/contacts/ajax/showaddproperty.php +++ b/apps/contacts/ajax/showaddproperty.php @@ -28,6 +28,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ diff --git a/apps/contacts/ajax/showsetproperty.php b/apps/contacts/ajax/showsetproperty.php index 0b30a8e68ec..6188f4773c3 100644 --- a/apps/contacts/ajax/showsetproperty.php +++ b/apps/contacts/ajax/showsetproperty.php @@ -29,6 +29,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ |