summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-30 23:10:08 +0200
committerBart Visscher <bartv@thisnet.nl>2011-09-30 23:17:30 +0200
commit9a5d517ec2d90698c98cf57cd5a12b4d1a40f53f (patch)
tree6769a9c99d3ed09daa5453830a3a7cefa824433e /apps
parentf4782a76907cf010faf9f4cd7deb3a67a2d02de9 (diff)
downloadnextcloud-server-9a5d517ec2d90698c98cf57cd5a12b4d1a40f53f.tar.gz
nextcloud-server-9a5d517ec2d90698c98cf57cd5a12b4d1a40f53f.zip
Add more checks for admin user
Diffstat (limited to 'apps')
-rw-r--r--apps/admin_export/settings.php1
-rw-r--r--apps/contacts/photo.php8
2 files changed, 2 insertions, 7 deletions
diff --git a/apps/admin_export/settings.php b/apps/admin_export/settings.php
index 565c4b3db97..8308a2b89b5 100644
--- a/apps/admin_export/settings.php
+++ b/apps/admin_export/settings.php
@@ -20,6 +20,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
+OC_Util::checkAdminUser();
OC_Util::checkAppEnabled('admin_export');
if (isset($_POST['admin_export'])) {
$root = OC::$SERVERROOT . "/";
diff --git a/apps/contacts/photo.php b/apps/contacts/photo.php
index 1bdfbe3a27f..5178fe7a078 100644
--- a/apps/contacts/photo.php
+++ b/apps/contacts/photo.php
@@ -22,19 +22,13 @@
// Init owncloud
require_once('../../lib/base.php');
+OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('contacts');
$id = $_GET['id'];
$l10n = new OC_L10N('contacts');
-// Check if we are a user
-if( !OC_User::isLoggedIn()){
- echo $l10n->t('You need to log in.');
- exit();
-}
-
-
$card = OC_Contacts_VCard::find( $id );
if( $card === false ){
echo $l10n->t('Contact could not be found.');