View Issue Details

IDProjectCategoryView StatusLast Update
16799Bug reportsImport/Exportpublic2020-11-30 14:53
ReporterDenisChenu Assigned Tocdorin  
Status assignedResolutionopen 
Product Version3.24.3 
Summary16799: User with read + create survey : invalid list shown

An user with real all surveys + create survey see whole survey : it's OK, but have error when try to copy.
When try to copy survey : see whole survey

Steps To Reproduce

Create an user with Survey/create and Survey/read global right : readandcreate user
Log in as readandcreate user
See whole survey : OK
Click on "Copy survey"
See whole survey in list
Select one and copy : error shown about invalid right

Additional Information

The test done for dropdown is Survey/Read
The test done for copy is surveycontent/export

2 way to fix:
Allow copy with survey/read
Show a list with only surveycontent/export (this include surveys/read)

Links :
Test when copy :
Survey listing (the name of this function … so unclear …)

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.24.3 git
I will donate to the project if issue is resolvedNo
Sync to Zoho ProjectYes
Browsernot relevant
Database & DB-Versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant


related to 16440 testingcdorin Feature requests Survey group Permission : minimal system 




2020-10-30 15:13




2020-11-30 14:04

developer   ~60804

My thought:
1 - Create a new function getSurveyArr(($bReturnArray = false, $refresh = false, $extraPermissionsCheck = [])
This will provide an array with surveys, with some extra permission checukng capabilities.
2 - Add new extraPermissionCheck parameter to SurveyModel::permission scope.
This will be an array of permissions to check. Will be added to the query.
3 - Use the new method on the copy function and require export permission to the survey list
4 - Use the new method on the getSurveyList function to get the array.

Part #4 will require a little bit more retesting, but will be fine I think.




2020-11-30 14:53

developer   ~60807

My opinion : read mean allow copy …

But : see 16440 : thnere are new model function to get the list

Don't fix without this part … else: must redo whole again …

Issue History

Date Modified Username Field Change
2020-10-30 15:13 DenisChenu New Issue
2020-10-30 15:13 DenisChenu File Added: Capture d’écran du 2020-10-30 15-01-21.png
2020-10-30 15:13 DenisChenu File Added: Capture d’écran du 2020-10-30 15-02-07.png
2020-10-30 15:13 DenisChenu File Added: Capture d’écran du 2020-10-30 15-02-19.png
2020-10-31 11:19 DenisChenu Relationship added related to 16440
2020-11-03 20:45 cdorin Assigned To => cdorin
2020-11-03 20:45 cdorin Status new => assigned
2020-11-03 20:45 cdorin Priority none => normal
2020-11-03 20:45 cdorin Sync to Zoho Project => Yes
2020-11-30 14:04 gabrieljenik Note Added: 60804
2020-11-30 14:53 DenisChenu Note Added: 60807