View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
07652 | Bug reports | Security | public | 2013-03-11 10:22 | 2013-03-12 12:36 |
Reporter | slansky | Assigned To | c_schmitz | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 07652: User groups permissins - Access denied | ||||
Description | When setting survey permissions for a group LS throws "Access denied" error. | ||||
Steps To Reproduce |
| ||||
Additional Information | In the "surveypermission.php" file on line 569 (in version 20130305) is user group id checked whether it exists in user ids array (getUserList('onlyuidarray')). There should be check against user groups ids. In the attachment is attached proposed patch. | ||||
Tags | No tags attached. | ||||
Attached Files | surveypermission.php.patch (570 bytes)
Index: surveypermission.php =================================================================== --- surveypermission.php (revision 230) +++ surveypermission.php (working copy) @@ -566,7 +566,7 @@ { $this->getController()->error('Access denied'); } - elseif( $postusergroupid && !in_array($postusergroupid,getUserList('onlyuidarray'))) + elseif( $postusergroupid && !in_array($postusergroupid,getUserGroupList(null, 'simplegidarray'))) { $this->getController()->error('Access denied'); } | ||||
Bug heat | 254 | ||||
Complete LimeSurvey version number (& build) | 201303 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MySQL 5.5.24, MySQL 5.1.6 | ||||
Server OS (if known) | Windows 7, Linux (Debian) | ||||
Webserver software & version (if known) | Apache 2.2.22, Apache 2.2.16 | ||||
PHP Version | PHP 5.3.1, PHP 5.3.3 | ||||
Build number should be 130305 ;-) |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11828 |
|
2.00+ build 130311 released |
|
Fix committed to 2.05 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11839 |
|
LimeSurvey: master 9ca37cc9 2013-03-11 14:46 Details Diff |
Fixed issue 07652: User groups permissions shows Access denied |
Affected Issues 07652 |
|
mod - application/controllers/admin/surveypermission.php | Diff File | ||
LimeSurvey: 2.05 79cabcfe 2013-03-11 14:46 Details Diff |
Fixed issue 07652: User groups permissions shows Access denied |
Affected Issues 07652 |
|
mod - application/controllers/admin/surveypermission.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-11 10:22 | slansky | New Issue | |
2013-03-11 10:22 | slansky | File Added: surveypermission.php.patch | |
2013-03-11 13:02 | slansky | Note Added: 24611 | |
2013-03-11 14:49 | c_schmitz | Changeset attached | => LimeSurvey master 9ca37cc9 |
2013-03-11 14:49 | c_schmitz | Note Added: 24616 | |
2013-03-11 14:49 | c_schmitz | Assigned To | => c_schmitz |
2013-03-11 14:49 | c_schmitz | Resolution | open => fixed |
2013-03-11 15:03 | c_schmitz | Status | new => assigned |
2013-03-11 15:03 | c_schmitz | Status | assigned => resolved |
2013-03-11 15:03 | c_schmitz | Fixed in Version | => 2.00+ |
2013-03-11 15:03 | c_schmitz | Note Added: 24618 | |
2013-03-11 15:03 | c_schmitz | Status | resolved => closed |
2013-03-12 12:36 | c_schmitz | Changeset attached | => LimeSurvey 2.05 79cabcfe |
2013-03-12 12:36 | c_schmitz | Note Added: 24662 |