Loading...
 
Skip to main content

permission check problem with Draw in File Galleries

Status
Closed
Subject
permission check problem with Draw in File Galleries
Version
12.x
Category
  • Error
Feature
Draw (SVG-edit)
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
Geoff Brickell
Volunteered to solve
Jonny Bradley
Lastmod by
Geoff Brickell
Rating
(1)
Description

When the Draw feature is 'on' the File Gallery listing (tiki-list_file_gallery.php) shows the "Create Drawing" button after correctly checking in tiki-list_file_gallery.tpl that the the feature is 'on' and the user has upload permission for the specific gallery

However another permission check is made in tiki-edit_draw.php (line 63 onwards) but it seems to be only a global permission check so if the user has upload permission given by categorisation the button is shown but then the .php code gives an error message saying that the use does not have permission.

The permission check in tiki-edit_draw.php should therefore be extended to check for category (and perhaps object ? ) permission

Solution

r49341?

Fixed - thanks

Importance
10 high
Easy to solve?
5
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5077
Created
Saturday 28 December, 2013 20:04:24 UTC
by Geoff Brickell
LastModif
Thursday 20 February, 2014 19:26:55 UTC


Show PHP error messages