View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
18653 | Bug reports | User / Groups / Roles | public | 2023-02-24 12:01 | 2023-06-20 17:49 |
Reporter | 2BITS_PL | Assigned To | DenisChenu | ||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Summary | 18653: getSuperAdmin return simple user | ||||
Description | If I give a user super admin permissions, the app will add them to the permissions table. When I take away super admin privileges from it, in the table it stays listed as super admin but without privileges. This is dangerous, for example, in the case of the getSuperAdmin method, which will retrieve this user for me, because it considers him to be a super administrator, but in fact he is not (because he has no permissions). For example, if he uses the notification system as documented to send a notification to all super admins, that non-privileged user will also receive this notification. | ||||
Steps To Reproduce |
Tested: v5.4.11, I have no way to check if this problem occurs in the latest version. | ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | Version 5.4.11+221114 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | SQL Server 2019 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | v8.0.27 NTS x64 | ||||
? How do you call this method ? Else : you right : getSuperAdmins are bad here … must find read_p =1 :) 2 issues :
I'm not sure we need 1 |
|
I fix only broken function. I don't think we need to delete all 0 permission. And if we must do : it's another issue. |
|
@2BITS_PL : can you test ? https://github.com/LimeSurvey/LimeSurvey/pull/2968 |
|
Added Automatic Tests |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34386 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2023-02-24 12:01 | 2BITS_PL | New Issue | |
2023-02-25 17:38 | DenisChenu | Note Added: 73953 | |
2023-02-25 17:38 | DenisChenu | Bug heat | 0 => 2 |
2023-02-25 17:38 | DenisChenu | Assigned To | => DenisChenu |
2023-02-25 17:38 | DenisChenu | Status | new => assigned |
2023-03-04 17:03 | DenisChenu | Summary | Does not remove super admins from the permissions table => getSuperAdmin return simple user |
2023-03-04 18:08 | DenisChenu | Note Edited: 73953 | |
2023-03-04 18:09 | DenisChenu | Note Added: 74032 | |
2023-03-04 18:10 | DenisChenu | Assigned To | DenisChenu => gabrieljenik |
2023-03-04 18:10 | DenisChenu | Status | assigned => ready for code review |
2023-03-04 18:10 | DenisChenu | Note Added: 74033 | |
2023-03-06 13:47 | gabrieljenik | Assigned To | gabrieljenik => DenisChenu |
2023-03-06 13:47 | gabrieljenik | Status | ready for code review => ready for testing |
2023-03-06 14:35 | DenisChenu | Note Added: 74039 | |
2023-03-21 14:38 | gabrieljenik | Note Added: 74215 | |
2023-03-21 14:38 | gabrieljenik | Bug heat | 2 => 4 |
2023-03-22 07:52 | DenisChenu | Assigned To | DenisChenu => ollehar |
2023-03-22 07:52 | DenisChenu | Status | ready for testing => ready for merge |
2023-03-22 12:31 | DenisChenu | Changeset attached | => LimeSurvey master 2ea8a2dc |
2023-03-22 12:31 | DenisChenu | Note Added: 74221 | |
2023-03-22 12:31 | DenisChenu | Assigned To | ollehar => DenisChenu |
2023-03-22 12:31 | DenisChenu | Resolution | open => fixed |
2023-03-22 12:31 | ollehar | Status | ready for merge => resolved |
2023-06-20 17:49 | c_schmitz | Status | resolved => closed |