View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16440 | Feature requests | Survey editing | public | 2020-06-30 16:34 | 2024-11-19 18:15 |
Reporter | DenisChenu | Assigned To | cdorin | ||
Priority | none | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Summary | 16440: Survey group Permission : minimal system | ||||
Description | Currently : there are no Permission system , but allowing some Permission in Survey Group | ||||
Additional Information | Need : Global permission
Survey groups permission
And :
SurveyGroup 1 (or the default one) is a specific group : all user have read right on it. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Story point estimate | |||||
Users affected % | |||||
related to | 16767 | closed | cdorin | Bug reports | User without right can see and update group name and description |
related to | 16799 | closed | gabrieljenik | Bug reports | User with read + create survey : invalid list shown |
related to | 14551 | closed | DenisChenu | Bug reports | user can grant more permissions on a survey than he has himself |
related to | 15421 | closed | cdorin | Feature requests | Survey group Permission : minimal system |
related to | 16428 | closed | DenisChenu | Bug reports | Simple user reset Survey group to default one |
related to | 16919 | assigned | ollehar | Bug reports | Missing test suite for survey group permissions |
related to | 16459 | assigned | DenisChenu | Bug reports | Add a way to extend Survey list in administration (for Permission) |
related to | 19270 | new | Bug reports | Permission edit page is more usable for SurveyGroup than for Survey |
Some user story User story #1 : Group owner
User story #2 : Survey inside groups : Global permssion on survey in Survey group
No need to manage who can access to survey inside this group one by one … |
|
For information : when update : an user with "All surveys" write have directlry "Read all" on all group. |
|
Oh … and "Themes options for this survey group" need a new Permission or not ? |
|
Send a document |
|
Hey Denis, 1) What do you think about adding the permission to "create" surveys in survey group permissions? (I see that the checkbox is missing) In case smth else comes into my mind - will write it down here for everyone. |
|
I think it's hard to «create survey in group» , but you're right : there are a lack of Permission 3 solutions :
BUT : related with template right management. Then user need READ access to the theme + update option to Theme on Survey Group.
Right : no reason to have delete (currently)
To be choosen : Can add a new line for SurveyGroup settings only or use this one . In my opinion: best is to have only one checkbox for both, but if needed can separate. |
|
About create, See odt : In fact : if you can see the SurveyGroup in the dropdown : you already can select this group in Survey management Else : must think differently : SurveyGroup dropdown take only "add" options ? |
|
Ok, then we do not need to add the "create survey" permissions since it's not worth it in the first phase.
I would go for: - "Permission on surveys list : adding and remove surveys from this group" view + update (mean add and remove) . Add + View/read + Delete may add too much confusion. Update already means that you are editing the surveys located inside the survey group. One follow up question in that regard: what does "Add" mean - from which groups can the survey group manager add questions ? -> Will it depend on which group view permission he has? It could end up a bit complicated. Perhaps I can document some use cases to have in mind when creating this functionality?
I would not go for image upload at the moment. Isee you cannot upload new imagines in admin/themeoptions/sa/updatesurveygroup -> it would overcomplicate too much the project for the first iteration/version of the feature.
Ok, so the Delete checkbox can be removed.
Hmm, no need to add a new line for Surveygroup settings imo. Better to use one checkbox for both options. |
|
OK, I start with this :) and make new screenshot when it's ready |
|
@cdorin : 2 questions
|
|
Hey Denis!
|
|
1 : new attribute in SurveyGroup i think |
|
1: Sure, sounds good. |
|
For 2 : if Group owner don't have right on surveys : i'm unsure on the real feature … it must be clear for user. There are #2 : give all rights on SureyGroups => give all rights on Surveys … |
|
2: Agree. So, the group owner will get all the survey-related permissions. Can that be reflected on the survey group permissions in any way? |
|
? Your question is unclear for me here. |
|
Nevermind - was just wondering where the survey group owner will be listed. But he will appear anyway on the survey group list page: localhost/index.php?r=admin/survey/sa/listsurveys#surveygroups |
|
Must remind of this ;) |
|
Currently : anybody can add/delete/update any groups … even without any rights … |
|
Yes , thus the necessity of having survey group permissions at the global level to block that... |
|
OK, You confirm we can remove current rights then :) Maybe i add a Plugin (core and activated) : User with Survey rights can see group of the survey :). It can be a great plugin for sample :) |
|
What do you mean by "removing current rights" ? |
|
User without any rights can update all groups . Since adding permission check : this user loose this right :)
No :
I think it's OK , don't need plugin, sorry :) |
|
Ah, thanks - took me some time :D About second point: yes, sounds amazing :) |
|
To be tested (and improved …) |
|
Like Survey : show to user, can be updated if user are owner or superadmin : https://github.com/LimeSurvey/LimeSurvey/blob/14b53db7ffe02d85020adab4690937fd1b1de835/application/views/admin/survey/subview/accordion/_generaloptions_panel.php#L124 But i show it if user didn't have right to update |
|
Document updated :
|
|
Adding test idea |
|
Hey Denis, thanks for your work! Haven't finished testing everything. Got the following two points so far: |
|
You can kick yourself out: if you give yourself survey group security permissions, you can take them from yourself. |
|
It must be same than Create Survey, can you check ?
Right, i must check. User can see on list ONLY surveys group where :
About 3 : maybe we must disable it for parent ?
I start with "allow only security if you have right" BUT : there are an issue on survey. See : https://bugs.limesurvey.org/view.php?id=16767 I can fix it BUT only when move Survey Permission management and SurveysGroup permission management using same function .... |
|
PS : about Permission control on save and view I start but need more rewrite for Survey at same time. |
|
I create a SureyGroup user allow : User (all) + SurveyGroup (all) : see screenshot when he create an user. Exactly the same for Survey (but with Survey ;) |
|
Fixed in https://github.com/LimeSurvey/LimeSurvey/pull/1632/commits/d8040440152b13461426e96808566b808ebe33bd |
|
Since survey have same issue : https://bugs.limesurvey.org/view.php?id=16767 I was happy to fix it for both when this one was merged (separate pull request purpose). |
|
Thanks @DenisChenu for comments! Did another round of small testing this evening and got the following 4 points (everything is related to survey group permissions at global level): |
|
Survey settings for group are show to User who have "Syrvey setting Read" right , but : no save button (and if try to save with hacking : 403 error) : maybe we can add a alert ? Or a readonly on element ?
No : can be seen if you have Read group, not shown if you get right on list by Survey. BUT : again : no way to save (403+no button) and here : shown at readonly
See 1 and 2 : you can view the description and the available Survey Theme
It's not already in current stable version . Since you can not delete it : we hide the button. I add the delete/group/right control only. Maybe we need to check if have parent too. |
|
|
|
Great, thanks for info! didn t pay attention to the lack of save button for point 2 :) . Will continue testing today |
|
there are an issue on the list on the last version .... About 2 : i think i check to add a visual information at top maybe ? |
|
Add permissions: is still there if you have only READ permission : i remove it. Or maybe it's due to "Create group" ? I check . I think you can not "create" right, only update : adding a new user is part to update ? |
|
I rechecked the whole flow. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2020-06-30 16:34 | DenisChenu | New Issue | |
2020-06-30 16:34 | DenisChenu | File Added: Capture d’écran du 2020-06-30 15-27-40.png | |
2020-06-30 16:34 | DenisChenu | File Added: Capture d’écran du 2020-06-30 15-35-32.png | |
2020-06-30 16:34 | DenisChenu | File Added: Capture d’écran du 2020-06-30 16-31-54.png | |
2020-06-30 16:37 | DenisChenu | Note Added: 58585 | |
2020-06-30 16:39 | DenisChenu | Additional Information Updated | |
2020-06-30 16:39 | DenisChenu | Note Added: 58586 | |
2020-06-30 16:39 | DenisChenu | Additional Information Updated | |
2020-06-30 16:40 | DenisChenu | Relationship added | child of 15421 |
2020-06-30 16:40 | DenisChenu | Relationship replaced | related to 15421 |
2020-06-30 16:53 | DenisChenu | Note Added: 58590 | |
2020-06-30 17:07 | DenisChenu | Note Added: 58591 | |
2020-06-30 17:07 | DenisChenu | File Added: Survey group Permission.odt | |
2020-06-30 17:08 | DenisChenu | Note Added: 58592 | |
2020-07-08 11:01 | DenisChenu | Relationship added | related to 16459 |
2020-09-01 17:16 | cdorin | Note Added: 59675 | |
2020-09-01 17:16 | cdorin | Assigned To | => cdorin |
2020-09-01 17:16 | cdorin | Status | new => assigned |
2020-09-01 17:19 | cdorin | Note Edited: 59675 | |
2020-09-01 17:45 | DenisChenu | Note Added: 59676 | |
2020-09-01 17:45 | DenisChenu | File Added: Capture d’écran du 2020-09-01 17-39-44.png | |
2020-09-01 17:48 | DenisChenu | Note Added: 59677 | |
2020-09-01 17:48 | DenisChenu | File Added: Capture d’écran du 2020-09-01 17-47-08.png | |
2020-09-01 18:15 | cdorin | Note Added: 59678 | |
2020-09-01 19:00 | DenisChenu | Note Added: 59679 | |
2020-10-20 09:52 | DenisChenu | Assigned To | cdorin => DenisChenu |
2020-10-20 10:19 | DenisChenu | Note Added: 60290 | |
2020-10-20 12:48 | cdorin | Note Added: 60297 | |
2020-10-20 13:02 | cdorin | Relationship added | related to 16428 |
2020-10-20 13:03 | cdorin | Issue Monitored: Jmantysalo | |
2020-10-20 14:28 | DenisChenu | Note Added: 60305 | |
2020-10-20 15:04 | cdorin | Note Added: 60306 | |
2020-10-20 15:16 | DenisChenu | Note Added: 60307 | |
2020-10-20 15:23 | cdorin | Note Added: 60309 | |
2020-10-20 15:27 | DenisChenu | Note Added: 60310 | |
2020-10-20 15:35 | cdorin | Note Added: 60312 | |
2020-10-20 15:44 | DenisChenu | Note Added: 60313 | |
2020-10-21 08:07 | DenisChenu | Relationship added | related to 16767 |
2020-10-22 16:57 | DenisChenu | Note Added: 60370 | |
2020-10-22 18:38 | cdorin | Note Added: 60377 | |
2020-10-22 18:47 | DenisChenu | Note Added: 60378 | |
2020-10-22 18:53 | cdorin | Note Added: 60379 | |
2020-10-22 19:18 | DenisChenu | Note Added: 60380 | |
2020-10-23 09:45 | cdorin | Note Added: 60385 | |
2020-10-31 11:18 | DenisChenu | Assigned To | DenisChenu => cdorin |
2020-10-31 11:18 | DenisChenu | Status | assigned => ready for testing |
2020-10-31 11:18 | DenisChenu | Note Added: 60478 | |
2020-10-31 11:19 | DenisChenu | Relationship added | related to 16799 |
2020-11-05 10:13 | DenisChenu | Note Added: 60552 | |
2020-11-05 10:39 | DenisChenu | Note Added: 60554 | |
2020-11-05 11:05 | DenisChenu | Note Added: 60556 | |
2020-11-05 11:05 | DenisChenu | File Added: Survey group Permission - v1.1.0.odt | |
2020-11-10 15:46 | DenisChenu | Note Added: 60606 | |
2020-11-10 15:46 | DenisChenu | File Added: Survey group Permission - v1.2.0.odt | |
2020-11-11 22:03 | cdorin | Note Added: 60615 | |
2020-11-11 22:20 | cdorin | Note Added: 60616 | |
2020-11-12 08:03 | DenisChenu | Note Added: 60620 | |
2020-11-12 08:03 | DenisChenu | Relationship added | related to 14551 |
2020-11-12 08:05 | DenisChenu | Note Added: 60621 | |
2020-11-17 16:38 | DenisChenu | Note Added: 60680 | |
2020-11-17 16:38 | DenisChenu | File Added: Capture d’écran du 2020-11-17 16-36-46.png | |
2020-11-17 17:25 | DenisChenu | Note Added: 60681 | |
2020-11-17 17:26 | DenisChenu | Note Added: 60682 | |
2020-11-19 20:05 | cdorin | Note Added: 60712 | |
2020-11-20 09:25 | DenisChenu | Note Added: 60714 | |
2020-11-20 09:26 | DenisChenu | Note Added: 60715 | |
2020-11-20 09:26 | DenisChenu | File Added: Capture d’écran du 2020-11-20 09-15-10.png | |
2020-11-20 09:28 | cdorin | Note Added: 60716 | |
2020-11-20 09:43 | DenisChenu | Note Added: 60717 | |
2020-11-20 10:16 | DenisChenu | Note Added: 60718 | |
2020-11-21 12:37 | DenisChenu | Relationship replaced | parent of 16459 |
2020-12-22 10:40 | cdorin | Note Added: 61018 | |
2020-12-22 16:22 | ollehar | Relationship added | related to 16919 |
2022-09-15 15:58 | DenisChenu | Relationship deleted | parent of 16459 |
2022-09-15 15:58 | DenisChenu | Relationship added | related to 16459 |
2023-11-23 10:49 | DenisChenu | Relationship added | related to 19270 |
2023-12-18 16:44 | DenisChenu | Status | ready for testing => resolved |
2023-12-18 16:44 | DenisChenu | Resolution | open => fixed |
2024-11-19 18:15 | c_schmitz | Status | resolved => closed |