mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 10:13:00 +02:00
fix action.php permissions checking when original is small
git-svn-id: http://piwigo.org/svn/trunk@13523 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+6
-2
@@ -103,9 +103,13 @@ $file='';
|
||||
switch ($_GET['part'])
|
||||
{
|
||||
case 'e':
|
||||
if ( $user['enabled_high']!='true' )
|
||||
if ( !$user['enabled_high'] )
|
||||
{
|
||||
do_error(401, 'Access denied e');
|
||||
$deriv = new DerivativeImage(IMG_XXLARGE, new SrcImage($element_info));
|
||||
if ( !$deriv->same_as_source() )
|
||||
{
|
||||
do_error(401, 'Access denied e');
|
||||
}
|
||||
}
|
||||
$file = get_element_path($element_info);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user