Loading...
 
Skip to main content

A Registered User Cannot Create a Top Level File Gallery

Status
Closed
Subject
A Registered User Cannot Create a Top Level File Gallery
Version
3.x
Category
  • Error
  • Usability
Feature
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
Ed
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

Admins can easily create file galleries once the feature is enabled. A registered user - even when granted "admin" privileges for file galleries — cannot create a top-level (i.e. just below default "File Galleries" Gallery, which is "0") gallery, without an error. The user can, however, create galleries within any gallery that resides directly under the top-level gallery (or in any nested gallery).

The error message is as follows:

Notice: invalid variable value: $_GET%22parentId%22 = -1

Maybe some problem with the parentId when it comes to non-admin users?

Solution
Enable the "tiki_p_trust_input" permission for the Registered user. This may cause other security problems, though (?). Once this permission is enabled, the error described above goes away.
Workaround
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2699
Created
Wednesday 26 August, 2009 21:36:35 UTC
by Unknown
LastModif
Thursday 28 May, 2026 13:19:04 UTC


Show PHP error messages