Needs review
Project:
Permissions per Webform
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2013 at 08:26 UTC
Updated:
23 Jan 2019 at 15:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #0.0
Jelmer85 commentedadded additional description
Comment #1
dwieeb commentedPermissions per Webform detects any differences between the individual webform settings and the global webform settings. If there are no differences between those two sets of settings, the checkbox automatically deactivates.
Try changing the individual settings to what you need them to be; then, it should save.
Comment #2
Jelmer85 commentedAh I see! You're right and it worked.
Maybe provide a small notification somewhere in future updates? From an interaction design point of view, it's a little confusing.
But nevermind, I'm very glad I've found this module! :-)
Comment #2.0
Jelmer85 commentedadded the edit line
Comment #3
Renee S commentedI'm seeing this, but not exactly this... "Enable permissions per webform" checkbox works, but when I change any of the Access/Edit/Delete Own permissions checkboxes, on save it doesn't stick. The top Access/Edit/Delete global constellation does; but the "own" doesn't. Am I missing something similarly UI-ish?
Comment #4
Renee S commentedHmmm.... ok, maybe this helps to debug, and it does seem like a (very minor) bug: I was trying to uncheck "authenticated user" and just leave "administrator" under Access/Edit/Delete Own submissions. When I checked "administrator" and "some other role", it saved. It just didn't like me unchecking authenticated without checking something else instead.
Comment #5
brianbrarian commentedI just ran into this issue, and I can confirm what Renee S reported (#4) two years ago.
I suggest that the the configuration instructions on the project page be updated to mention that administrator + another role need to be selected.
Comment #6
mikeskull commentedSimple enough to debug, array_diff only returns values from array 1 that arent in array 2, problem is if youre adding more permissions than existed before. A true array_diff is done via:
$diff = array_merge(array_diff($values, $default), array_diff($default, $values));
change line 244 in the module to this and itll save everything fine.
Comment #7
mikeskull commentedOh and heres a small patch for those that want it.
Comment #8
rjbrown99 commentedUpdating issue status to indicate a patch is here.
Comment #9
arx-e commentedI had the same problem. The "Enable permissions per webform" could not be activated unless I changed something in the first row of permissions. Changing the settings in the second row of permissions "Access/edit/delete own ..." the second row of permissions will not result in the Enabled state being saved.
I tried the patch in #4 and it works for saving the state of the settings.
But the settings do not seem to have any effect. Users that should be prevented from accessing and editing their submissions ar still able to do so.