diff options
author | Michiel@unhosted <michiel@unhosted.org> | 2011-10-09 17:13:34 +0200 |
---|---|---|
committer | Michiel@unhosted <michiel@unhosted.org> | 2011-10-09 17:13:34 +0200 |
commit | 6e62911a4ebeb16203cf88cd9b62da37b519ed62 (patch) | |
tree | 404f3c882c2c979c7433ab067bc793ae349fac0f /apps/gallery/ajax/cover.php | |
parent | f4fb6356cd5d9143f59ad41425d74fb35bbe68fd (diff) | |
parent | 203f7a3a870964310060d82bdd61d14eb1613791 (diff) | |
download | nextcloud-server-6e62911a4ebeb16203cf88cd9b62da37b519ed62.tar.gz nextcloud-server-6e62911a4ebeb16203cf88cd9b62da37b519ed62.zip |
Merge branch 'master' of gitorious.org:owncloud/owncloud
Diffstat (limited to 'apps/gallery/ajax/cover.php')
-rw-r--r-- | apps/gallery/ajax/cover.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/gallery/ajax/cover.php b/apps/gallery/ajax/cover.php index 44d73028510..d83f4daaa52 100644 --- a/apps/gallery/ajax/cover.php +++ b/apps/gallery/ajax/cover.php @@ -1,5 +1,7 @@ <?php require_once('../../../lib/base.php'); +OC_JSON::checkLoggedIn(); +OC_JSON::checkAppEnabled('gallery'); function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height) { //$imgSrc is a FILE - Returns an image resource. //getting the image dimensions @@ -36,11 +38,6 @@ function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height) { //$imgSr return $thumb; } -// Check if we are a user -if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => 'You need to log in.'))); - exit(); -} $box_size = 200; $album_name = $_GET['album']; $x = $_GET['x']; |