View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
09585Bug reportsTheme editorpublic2015-07-24 11:44
Reporternwinter Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.06+ 
Summary09585: Template permissions don't work for templates with spaces or dashes in name
Description

Templates can be created with spaces, underscores, and dashes in the names. Administrators with template rights can use them. They appear on the list of templates in the template permissions administrative screen. But users who (1) do not have template permission but (2) have been granted permission to use the template cannot see it in the dropdown list of available templates.

Steps To Reproduce

Create a template with a dash or space in the name. Grant a user who does not have global template permission access to it. The user will not be able to see it in the list of templates.

TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)Build 150310
I will donate to the project if issue is resolvedNo
BrowserAny
Database type & version178
Server OS (if known)x86_64-redhat-linux-gnu
Webserver software & version (if known)Apache/2.2.17
PHP Version5.3.8

Users monitoring this issue

Mazi

Activities

DenisChenu

DenisChenu

2015-06-01 09:20

developer   ~32275

Problems : can you actually create a template with space ? Seems when copying [space] is replaced with dash...

dash seems OK for template name ;)

Mazi

Mazi

2015-06-01 09:23

updater   ~32276

I think this is not about copying templates but a user right issue: "Grant a user who does not have global template permission access to it. The user will not be able to see it in the list of templates."

DenisChenu

DenisChenu

2015-06-01 09:52

developer   ~32277

Yes Mazi, i understand BUT :

  • did we allow [space] in template. If not : clearly we don't have to see it in template listing.
  • dis we allow . at start of template name

etc ....

Here : it seems teplate list and template name have different behaviour. Fix template name before template list is the best idea (i think).

Did 2.06 have same issue too : https://github.com/LimeSurvey/LimeSurvey/blob/2.06/application/models/Template.php#L127

DenisChenu

DenisChenu

2015-06-25 19:34

developer   ~32520

Please : can you test with last version (build of today)

DenisChenu

DenisChenu

2015-06-30 17:58

developer   ~32582

Tested with last 2.06 seem to work

c_schmitz

c_schmitz

2015-07-24 11:44

administrator   ~32797

Version 2.06 Build 150723 released

Issue History

Date Modified Username Field Change
2015-03-23 21:26 nwinter New Issue
2015-06-01 09:04 Mazi Issue Monitored: Mazi
2015-06-01 09:20 DenisChenu Note Added: 32275
2015-06-01 09:23 Mazi Note Added: 32276
2015-06-01 09:52 DenisChenu Note Added: 32277
2015-06-25 19:34 DenisChenu Note Added: 32520
2015-06-25 19:34 DenisChenu Assigned To => DenisChenu
2015-06-25 19:34 DenisChenu Status new => feedback
2015-06-30 17:58 DenisChenu Note Added: 32582
2015-06-30 17:58 DenisChenu Status feedback => resolved
2015-06-30 17:58 DenisChenu Fixed in Version => 2.06+
2015-06-30 17:58 DenisChenu Resolution open => fixed
2015-07-24 11:44 c_schmitz Note Added: 32797
2015-07-24 11:44 c_schmitz Status resolved => closed
2015-12-11 14:40 c_schmitz Category Templates => Theme editor