mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 12:19:57 +03: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:
parent
1fe2f42fa8
commit
b1c58f59ca
1 changed files with 6 additions and 2 deletions
|
@ -103,10 +103,14 @@ $file='';
|
||||||
switch ($_GET['part'])
|
switch ($_GET['part'])
|
||||||
{
|
{
|
||||||
case 'e':
|
case 'e':
|
||||||
if ( $user['enabled_high']!='true' )
|
if ( !$user['enabled_high'] )
|
||||||
|
{
|
||||||
|
$deriv = new DerivativeImage(IMG_XXLARGE, new SrcImage($element_info));
|
||||||
|
if ( !$deriv->same_as_source() )
|
||||||
{
|
{
|
||||||
do_error(401, 'Access denied e');
|
do_error(401, 'Access denied e');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$file = get_element_path($element_info);
|
$file = get_element_path($element_info);
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue