Closed duvld closed 3 years ago
I do think we should shield people from making edits to a form that they'd never be able to save. Another way we could do that, though, would be to let people open the form builder for forms that they cannot change, and when they save, allow them to save the form to their own account, like a "save as" function. Cloning a form allows something similar. Example workflow:
The existing way to get that done would require John to clone the form before opening the form builder.
Another argument for letting people with view-only access open the form builder is that there are certain aspects of the form that can't be seen without using the form builder or downloading XLSForm—and Not everyone understands XLSForm.
Closed by #2953
Description
Users can see different screens that are implied to be be hidden without proper permissions
view_submissions
orchange_submissions
orvalidate_submissions
(both requireview_submissions
) they can navigate to a project's Sharing and Media screens via the URL and see its contents but cannot submit any changesSince the form landing's edit icon is greyed out and the data-tip says it is unavailable to the user they shouldn't be able to see the formbuilder. Similarly, since a user with only
view_submissions
orchange_submissions
orvalidate_submissions
permissions does not see the Settings tab they shouldn't be able to navigate to anything listed in the Settings tab (i.e. Sharing, Media) even though the user can't make any changes to the respective settings/formbuilderSteps to Reproduce
For formbuilder:
Edit Form
to auserB
userB
kobo_url/{uid}/edit/
For Settings:
view_submissions
orchange_submissions
orvalidate_submissions
to auserB
userB
kobo_url/{uid}/settings/media
or Navigate tokobo_url/{uid}/settings/sharing
Expected behavior
Without proper permissions the user should see "Access Denied"
Actual behavior
The user sees fields that they can manipulate but aren't authorized to
Additional details
Visualiztion: (this user has only
View Form
andview_submissions
permissions)