List of surveys is not available for user with tiki_p_take_survey perms
- Status
- Pending
- Subject
- List of surveys is not available for user with tiki_p_take_survey perms
- Version
- 1.9.x
- Category
- Error
- Feature
- Survey
- Submitted by
- vytasm
- Volunteered to solve
- vytasm
- Rating
- Description
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'))
- Importance
- 5
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 1259
- Created
- Tuesday 24 July, 2007 07:24:58 UTC
by Unknown - LastModif
- Tuesday 24 July, 2007 07:24:58 UTC