View Issue Details

This bug affects 1 person(s).
 16
IDProjectCategoryView StatusLast Update
10766Bug reportsUser / Groups / Rolespublic2016-05-17 12:41
Reportersickpig Assigned ToLouisGac 
PrioritynoneSeveritypartial_block 
Status closedResolutionfixed 
Product Version2.50.x 
Fixed in Version2.50.x 
Summary10766: Setting survey permission is not working
Description

Setting Permission on a single survey does not work.

Steps To Reproduce

1) as superadmin create a new user, e.g. userA
2) as superadmin do not grant any permission at global level
3) as superadmin grant permission to access Responses and Statistics for an active survey
4) open your browser in incognito mode
5) login as userA
6) No survey are listed for the given user.

Additional Information

Even in the "Survey permissions" in the row related to userA there's no permission marked as granted

TagsNo tags attached.
Bug heat16
Complete LimeSurvey version number (& build)Version 2.50+ Build 160311
I will donate to the project if issue is resolvedNo
Browser
Database type & versionPostgreSQL v9.1+
Server OS (if known)Linux Ubuntu 14.04
Webserver software & version (if known)Apache 2.4-7
PHP VersionPhp 5.5.9

Users monitoring this issue

chris1337, pedro42

Activities

fvanderstarre

fvanderstarre

2016-03-15 09:49

reporter   ~36487

Sorry, can't reproduce. Did you click "Save" when setting survey permissions for the new user (have to ask....)?

sickpig

sickpig

2016-03-15 11:28

reporter   ~36498

Last edited: 2016-03-15 17:12

After the update to build 160314 I'm not even able to access to survey permission section, chrome just report:

The xxxxx.xxxx.xxx page isn’t working

xxxxx.xxxx.xxx is currently unable to handle this request. (500)

no error are logged into apache2 log though.

if I try to set debug->1 in config.php I got this error:

Fatal error: Call to undefined function debugbreak() in application/controllers/admin/surveypermission.php on line 38

sickpig

sickpig

2016-03-15 11:45

reporter   ~36504

@fvanderstarre

sure I did click on save.

I even try to create a new survey with only one question, just to make sure that the problem wasn't related only to a particular survey. For me it's 100% reproducible. Just to make sure I even looked at the db level and permissions seems to be stored correctly thought for some reason they're not effective.

id | entity | entity_id | uid | permission | create_p | read_p | update_p | delete_p | import_p | export_p
----+----------+-----------+-----+------------+----------+--------+----------+----------+----------+----------
66 | template | 0 | 8 | repubblica | 0 | 1 | 0 | 0 | 0 | 0
67 | global | 0 | 8 | auth_db | 0 | 1 | 0 | 0 | 0 | 0
80 | survey | 218769 | 8 | responses | 1 | 1 | 1 | 1 | 1 | 1
81 | survey | 218769 | 8 | statistics | 0 | 1 | 0 | 0 | 0 | 0
82 | survey | 218769 | 8 | survey | 0 | 1 | 0 | 0 | 0 | 0

magviegas

magviegas

2016-03-15 17:07

reporter   ~36516

Same issue here, but detected a few different things.

After manually updating from build 151126 to build 160314, can't access survey permissions as admin (in any survey, new or existing). Browsers gives error 500 and apache logs it:
192.168.X.X - - [15/Mar/2016:15:46:48 +0000] "GET /index.php/admin/surveypermission/sa/view/surveyid/81386 HTTP/1.1" 500 342 "http://inquerito.domain.pt/index.php/admin/survey/sa/view/surveyid/81386" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36"

Single users that used to have access to surveys on the previous build don't see any surveys now on the survey list. However, users that belong to groups that have permissions assigned to surveys can normally see the surveys and the survey list (even though they can not access the survey permissions link).

sickpig

sickpig

2016-03-15 17:15

reporter   ~36519

Last edited: 2016-03-15 17:18

@magviegas

if line 38 application/controllers/admin/surveypermission.php consists of just a call to debugbreak(), remove the line and you should be ok.

with regard to survey permission, global one seems to work, but if a a user has not been granted any global permissions, even if had a permission to access a particular survey his survey lists result empty.

magviegas

magviegas

2016-03-15 17:25

reporter   ~36523

Thanks, it works now. That line is the problem.

Yeah, the access list of some surveys are now empty. Had to delegate access again to the users.

What I noticed is that if a user doesn't belong to any group, then the access list got empty and had to add the user again.
However, if the user does belong to a group and permissions were given to this group, the access list was kept intact.

sickpig

sickpig

2016-03-15 17:34

reporter   ~36524

the group work-around doesn't work for me :(

this is start to worrying me because maybe the problem is due to the fact that I've some kind of local issue, maybe the DB data are inconsistent.

ceexcerpta

ceexcerpta

2016-03-22 15:26

reporter   ~36711

Having similar (redundant?) issue (10810) using build 160219.

LouisGac

LouisGac

2016-03-31 10:27

developer   ~36861

can someone confirm this problem with a fresh installation of 2.5?

sickpig

sickpig

2016-04-04 11:51

reporter   ~36970

Last edited: 2016-04-04 12:15

Sorry but I'm still experiencing the exact same problem on LS 2.50+ build 160404.

sickpig

sickpig

2016-05-17 10:41

reporter   ~38593

sorry for the late update, but the issue is fixed since Build 160430.

thanks and keep up the good work!

LouisGac

LouisGac

2016-05-17 10:46

developer   ~38598

Thank you for averting ;-)

c_schmitz

c_schmitz

2016-05-17 12:41

administrator   ~38605

Version 2.50+ Build 160516 released

Issue History

Date Modified Username Field Change
2016-03-14 17:17 sickpig New Issue
2016-03-15 09:49 fvanderstarre Note Added: 36487
2016-03-15 11:28 sickpig Note Added: 36498
2016-03-15 11:45 sickpig Note Added: 36504
2016-03-15 17:07 magviegas Note Added: 36516
2016-03-15 17:12 sickpig Note Edited: 36498
2016-03-15 17:15 sickpig Note Added: 36519
2016-03-15 17:18 sickpig Note Edited: 36519
2016-03-15 17:25 magviegas Note Added: 36523
2016-03-15 17:34 sickpig Note Added: 36524
2016-03-15 22:47 pedro42 Issue Monitored: pedro42
2016-03-22 15:26 ceexcerpta Note Added: 36711
2016-03-31 10:27 LouisGac Note Added: 36861
2016-03-31 10:27 LouisGac Assigned To => LouisGac
2016-03-31 10:27 LouisGac Status new => feedback
2016-04-04 09:54 c_schmitz Status feedback => closed
2016-04-04 09:54 c_schmitz Resolution open => fixed
2016-04-04 09:54 c_schmitz Fixed in Version => 2.5
2016-04-04 11:51 sickpig Note Added: 36970
2016-04-04 11:51 sickpig Status closed => feedback
2016-04-04 11:51 sickpig Resolution fixed => reopened
2016-04-04 12:15 sickpig Note Edited: 36970
2016-05-12 17:42 LouisGac Assigned To LouisGac => c_schmitz
2016-05-12 17:42 LouisGac Status feedback => assigned
2016-05-13 14:25 chris1337 Issue Monitored: chris1337
2016-05-17 10:37 LouisGac Assigned To c_schmitz => LouisGac
2016-05-17 10:41 sickpig Note Added: 38593
2016-05-17 10:46 LouisGac Note Added: 38598
2016-05-17 10:46 LouisGac Status assigned => resolved
2016-05-17 10:46 LouisGac Resolution reopened => fixed
2016-05-17 12:41 c_schmitz Note Added: 38605
2016-05-17 12:41 c_schmitz Status resolved => closed
2019-11-01 17:26 c_schmitz Category User/User groups => User / Groups / Roles
2021-08-04 09:58 guest Bug heat 12 => 16