View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
16967Bug reportsSurvey editingpublic2026-11-20 14:25
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status resolvedResolutionfixed 
Summary16967: remove giveAllSurveyPermissions
Description

This function allow to give all permission to an user,

But it was used only for owner_id.

Since owner_id have already all rights : not needed

Additional Information

If super-admin want to disable user access :

  • is user create survey : need to update owner + remove Permission
  • is user didn't create survey : need to update owner only …
TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)4.0.0
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URL

Relationships

related to 14551 closedDenisChenu Bug reports user can grant more permissions on a survey than he has himself 
related to 16440 closedcdorin Feature requests Survey group Permission : minimal system 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-11-20 14:25

administrator   ~87815

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=41377

Related Changesets

LimeSurvey: master c56ed227

2026-11-20 14:25

c_schmitz


Details Diff
Fixed issue 16967: After the owner of a new survey was changed, the previous owner still had all permissions on it
Dev New, imported and RemoteControl-created surveys no longer get permission rows for the owner; the owner has all permissions anyway
Dev The survey permissions page shows the survey owner and no longer lists or offers the owner as a user
Dev Permission::giveAllSurveyPermissions() is deprecated and no longer used by core; existing owner permission rows are kept
Affected Issues
16967
mod - application/controllers/SurveyPermissionsController.php Diff File
mod - application/helpers/admin/import_helper.php Diff File
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File
mod - application/models/Permission.php Diff File
mod - application/models/services/CreateSurvey.php Diff File
mod - application/models/services/SurveyPermissions.php Diff File
mod - application/views/surveyPermissions/index.php Diff File
mod - tests/unit/models/SurveyPermissionsServiceTest.php Diff File

Issue History

Date Modified Username Field Change
2021-01-12 13:37 DenisChenu New Issue
2021-01-12 13:47 DenisChenu Relationship added related to 14551
2021-01-12 13:58 DenisChenu Relationship added related to 16440
2021-01-12 13:58 DenisChenu Project Bug reports => @10@
2026-11-19 22:50 c_schmitz Status new => acknowledged
2026-11-19 22:50 c_schmitz Product Version 4.4.0-RC2 =>
2026-11-20 14:25 c_schmitz Changeset attached => LimeSurvey master c56ed227
2026-11-20 14:25 c_schmitz Note Added: 87815
2026-11-20 14:25 c_schmitz Assigned To => c_schmitz
2026-11-20 14:25 c_schmitz Status acknowledged => resolved
2026-11-20 14:25 c_schmitz Resolution open => fixed
2026-11-20 14:25 c_schmitz Bug heat 0 => 2