User with tiki_p_take_survey permission cannot see a list of available surveys.
List of surveys is available only for users having both tiki_p_take_survey AND tiki_p_view_stats perms.
Proposed solution:
- to modify function list_surveys (lib/tikilib.php):
from:
$add=$this->user_has_perm_on_object($user,$res'surveyId','survey',array('tiki_p_take_survey','tiki_p_view_survey_stats'));
to:
$add=$this->user_has_perm_on_object($user,$res'surveyId','survey',array('tiki_p_take_survey'/*,'tiki_p_view_survey_stats'*/)) ||$this->user_has_perm_on_object($user,$res'surveyId','survey',array(/*'tiki_p_take_survey',*/'tiki_p_view_survey_stats'))
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |