29 views

Description

Users with the survey_reader role are not able to view responses of assessments because the assessment_take_2 UI Page requires  the survey_admin role.

Steps to Reproduce

  1. Impersonate a user that has the survey_reader role but not the survey_admin role.

  2. Navigate to Survey Instances > Completed.

  3. This will show you all the survey instances that are in complete state.

  4. Open any record here.

  5. Click on the View User's Response related link.

    A new dialog will open and will be blank rather than displaying the user's survey response.

 

 

Workaround

For a permanent fix, review the Fixed In and Intended Fix Version fields to determine whether any versions have a planned or implemented fix.

For the current workaround, modify the assessment_take_2 UI Page to grant access to the survey_reader role.

Change line #96 from:

if (jelly.sysparm_isSurveyCreator == 'yes' || (jelly.jvar_isReaderView == 'true' ${AND} gs.hasRole('survey_admin')))

To:

if (jelly.sysparm_isSurveyCreator == 'yes' || (jelly.jvar_isReaderView == 'true' ${AND} (gs.hasRole('survey_admin') || gs.hasRole('survey_reader'))))


Related Problem: PRB1241026

Seen In

Kingston

Intended Fix Version

Kingston Patch 6
London

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-05-17 05:44:46
Published:2018-05-03