Loading...
 
Skip to main content

Users cannot edit files galleries

Status
Closed
Subject
Users cannot edit files galleries
Version
2.x
Category
  • Error
  • Usability
Feature
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
lpborges
Lastmod by
pkdille
Rating
(0)
Description

Users cannot edit files galleries properties.
At tiki-list_file_gallery.php file, the second if statement is open in the wrong place:

tiki-list_file_gallery.php

312 // Check THIS gallery modification rights
313 if ( $galleryId > 0 ) {
314 if ( ! $user || $gal_info'user' != $user )
315 $smarty->assign('errortype', 401);{
316 $smarty->assign('msg', tra('Permission denied you cannot edit this gallery'));
317 $smarty->display('error.tpl');
318 die;
319 }
320 }

Solution

Change to:

tiki-list_file_gallery.php

312 // Check THIS gallery modification rights
313 if ( $galleryId > 0 ) {
314 if ( ! $user || $gal_info'user' != $user ) {
315 $smarty->assign('errortype', 401);
316 $smarty->assign('msg', tra('Permission denied you cannot edit this gallery'));
317 $smarty->display('error.tpl');
318 die;
319 }
320 }

Fixed on svn in both 2.0 and 3.0. Will be fixed in next release.

Importance
9 high
Priority
45
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2009
Created
Thursday 04 September, 2008 13:51:42 UTC
by Unknown
LastModif
Wednesday 17 September, 2008 09:19:43 UTC


Show PHP error messages