View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
05509Bug reportsSurvey participants (Tokens)public2012-03-14 21:08
ReporterMazi Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00a1 
Target Version2.00a1 
Summary05509: Standard superadmin user "admin" hs no rights to access CPDB after a fresh install
Description

When running a fresh install the "admin" superuser doesn't have the rights to access the CPDB feature. This right has to be set during installation (and should be on by default for all superadmin users).

Steps To Reproduce

Create a fresh install.
Login using admin/password
-> no CPDB icon is shown

TagsNo tags attached.
Bug heat6
Complete LimeSurvey version number (& build)11144
I will donate to the project if issue is resolvedNo
BrowserFirefox 3.6
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

Mazi

Mazi

2011-10-13 15:38

updater   ~16411

Seems to be a toolbar problem:
"[15:30] shnoulle: on devdemo : central particpant database are OK
[15:30] shnoulle: Create token table, go to token table and last icon
[15:30] shnoulle: http://devdemo.limesurvey.org/index.php/admin/participants/index
[15:34] Mazi|away: shnoulle, that means that someone has changed the GUI, the CPDB icon should appear on the top line
[15:34] Mazi|away: without having to create a token table first, because that doesn't make sense
[15:35] shnoulle: Yep, i know . "Just" a toolbar problem :)"

DenisChenu

DenisChenu

2011-10-13 17:22

developer   ~16412

Last edited: 2011-10-13 17:22

Actually, it test if $fields['participant_panel'] is set to Yes, but superadmin have to have access to whole part even if it's No.

I propose this diff for application/core/Admin_Controller.php:

  • $this->session->set_userdata('USER_RIGHT_CREATE_SURVEY', $fields['create_survey']);
  • $this->session->set_userdata('USER_RIGHT_PARTICIPANT_PANEL', $fields['participant_panel']);
  • $this->session->set_userdata('USER_RIGHT_CONFIGURATOR', $fields['configurator']);
  • $this->session->set_userdata('USER_RIGHT_CREATE_USER', $fields['create_user']);
  • $this->session->set_userdata('USER_RIGHT_DELETE_USER', $fields['delete_user']);
  • $this->session->set_userdata('USER_RIGHT_MANAGE_TEMPLATE', $fields['manage_template']);
  • $this->session->set_userdata('USER_RIGHT_MANAGE_LABEL', $fields['manage_label']);
  • $this->session->set_userdata('USER_RIGHT_CREATE_SURVEY', ($fields['create_survey'] || $fields['superadmin']));
  • $this->session->set_userdata('USER_RIGHT_PARTICIPANT_PANEL', ($fields['participant_panel'] || $fields['superadmin']));
  • $this->session->set_userdata('USER_RIGHT_CONFIGURATOR', ($fields['configurator'] || $fields['superadmin']));
  • $this->session->set_userdata('USER_RIGHT_CREATE_USER', ($fields['create_user'] || $fields['superadmin']));
  • $this->session->set_userdata('USER_RIGHT_DELETE_USER', ($fields['delete_user'] || $fields['superadmin']));
  • $this->session->set_userdata('USER_RIGHT_MANAGE_TEMPLATE', ($fields['manage_template'] || $fields['superadmin']));
  • $this->session->set_userdata('USER_RIGHT_MANAGE_LABEL', ($fields['manage_label'] || $fields['superadmin']));

superadmin have ALL the right then :)

Mazi

Mazi

2011-10-13 17:31

updater   ~16413

[17:30] Mazi: c_schmitz, so this is a rights issue plus a toolbar issue because the icon seems to appear only once a token table was created.
[17:30] Mazi: or do I mix things up?
[17:31] c_schmitz: think you are right
[17:31] c_schmitz: that'S a third problem, obviously ;)
[17:31] Mazi: k. let aniessh start working on this first

aniesshsethh

aniesshsethh

2011-10-13 23:38

reporter   ~16414

Fixed and committed

Mazi

Mazi

2011-10-14 09:12

updater   ~16415

Shnoulle, I just did a fresh install and the icon appears where I expect it (at the top line).

I think we can call this "fixed"?!

DenisChenu

DenisChenu

2011-10-14 10:28

developer   ~16416

Yep :).

I make a new bug report for superadmin :)

Related Changesets

LimeSurvey: Yii c4fcf678

2011-10-13 14:36:58

aniesshsethh

Details Diff
Fixed issue 05509 : Standard superadmin user "admin" hs no rights to access CPDB after a fresh install
Dev allowed the default user participant panel right

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_ci@11157 b72ed6b6-b9f8-46b5-92b4-906544132732
Affected Issues
05509
mod - application/controllers/installer.php Diff File

Issue History

Date Modified Username Field Change
2011-10-13 15:29 Mazi New Issue
2011-10-13 15:29 Mazi Status new => assigned
2011-10-13 15:29 Mazi Assigned To => aniesshsethh
2011-10-13 15:38 Mazi Note Added: 16411
2011-10-13 17:22 DenisChenu Note Added: 16412
2011-10-13 17:22 DenisChenu Note Edited: 16412
2011-10-13 17:31 Mazi Note Added: 16413
2011-10-13 23:38 aniesshsethh Note Added: 16414
2011-10-13 23:38 aniesshsethh Assigned To aniesshsethh => Mazi
2011-10-13 23:38 aniesshsethh Status assigned => feedback
2011-10-14 09:11 Mazi Assigned To Mazi => DenisChenu
2011-10-14 09:11 Mazi Status feedback => assigned
2011-10-14 09:12 Mazi Note Added: 16415
2011-10-14 10:28 DenisChenu Note Added: 16416
2011-10-14 10:29 DenisChenu Status assigned => closed
2011-10-14 10:29 DenisChenu Resolution open => fixed
2012-03-14 21:08 aniesshsethh Changeset attached => Import 2012-03-09 13:30:34 Yii c4fcf678
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)