Needs review
Project:
Webform Submissions ACL
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2012 at 12:29 UTC
Updated:
28 May 2015 at 16:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
epoitras commentedHere's an ugly fix I did to get it working with Drupal 7. I also added a few fixes discussed in the issue list. Was in the process of adding role based ACL when I decided I had defaced the module enough for now. I may come back to it later to finish off the role based ACL stuff.
Comment #2
epoitras commentedOops my bad, this is the one.
Comment #3
piola commentedepoitras, can you please submit your code as an official commit so that it appears on the module's landing page. I am testing it, so far did not find any issues.
Comment #4
epoitras commentedI don't have permission to submit the patch as an official commit, but here is a patch to be reviewed if Davy Van Den Bremt is still around.
Comment #5
beefheartfan commentedI did some testing on the patch today and I uncovered one issue.
If I attempted to add a user name that doesn't exist in my Drupal site I got the following error message along with the "Invalid User" error message:
Notice: Trying to get property of non-object in webform_submissions_acl_form_validate() (line 64 of C:\wamp\www\drupal7\sites\all\modules\webform_submissions_acl\webform_submissions_acl.pages.inc).
I corrected this by changing this code:
to this:
Comment #6
beefheartfan commentedDeleting users also didn't seem to work correctly for me. The $account variable was not being passed into the webform_submissions_acl_delete_confirm_form function until I made this update to the menu hook (I changed the page arguments to 4 instead of 5):
Comment #7
john.oltman commentedHere is a fresh patch that covers comments 4 through 6.