Loading...
 
Skip to main content

File Gallery Navivaion appears when permissions no not allow

Status
Open
Subject
File Gallery Navivaion appears when permissions no not allow
Category
  • Usability
  • Less than 30-minutes fix
Feature
File Gallery (elFinder or standard UI)
Resolution status
New
Submitted by
drsassafras
Lastmod by
drsassafras
Rating
(0)
Description

Withing a file gallery, the "parent gallery" navigation button appears even if that user has no permissions to view the gallery it points to, of course causing an error, and allowing google to index the error.

To reproduce: set global tiki_p_view_file_gallery to allow. Create a child gallery. Set the tiki_p_view_file_gallery for the parent gallery to deny. Navigate to the child gallery. Click the "parent gallery" link. The error appears.

What it should do.

Instead of checking if the user has permissions to view the page they are navigating from, check if the user has permission to view the page they are navigating to. (in this case the parent page.) & do not display the navigation link if here is no permissions to view it.

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5206
Created
Monday 28 April, 2014 05:46:06 UTC
by drsassafras
LastModif
Monday 28 April, 2014 05:46:06 UTC


Show PHP error messages