Closed (duplicate)
Project:
User Restrictions
Version:
7.x-1.0-beta7
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2011 at 20:42 UTC
Updated:
1 Nov 2011 at 09:06 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedI already fixed the code, but before to commit it, I will test on my test site, which needs to be updated. As soon as I update the local site, and test the new version of the code, I will commit the code to CVS.
Comment #2
BenK commentedSubscribing. Looking forward to the commit and possible a new release?
Comment #3
erikvip commentedSubscribing - any ETA on the commit??
Can we get the unstable version at least, I'm more than happy to test it.
Comment #4
chriz001 commentedsubscribe
Comment #5
barrett commentedI'm assuming this is abandoned, but I'll leave what I found in case anyone takes it up again.
The Access Type radios aren't displayed because the getStatusOptions method which sets the options in the form function returns an empty array. The cause is that the user_restrictions_user_restrictions_info function (see user_restrictions.module: 91) is passed an array rather than a single string (see user_restrictions.classes.inc: 179).
That's also what's causing the Type Options to not be displayed, as the getTypeOptions uses the same module_invoke(...) call, just with different parameters.
Display issues with the form aside, on submit, none of the values from the are written into the object which is saved.
Comment #6
barrett commentedThe aforementioned problems make the module unusable, so I'm marking them critical lest someone think the module still functions.
Comment #7
barrett commentedThe attached patch fixes the issues with the form elements and writes the values from the form onto the resulting object for saving. It also addresses the issue reported in #1036846: Code passes the wrong argument to a database function
The module is still non-functional, but at least this bit works now.
Comment #8
Anonymous (not verified) commentedsubscribe.
Comment #9
jmvidal commentedsubscribe.
Comment #10
Anonymous (not verified) commentedDoes anyone know of an alternative way to implement restrictions, through some other module or otherwise? doesn't look like this module will be getting off the ground and in working form....
Comment #11
obiwankaynobi commentedditto
Comment #12
d0t15t commentedja i'm in the same boat - looking for a module that allows users to block content access to specific users. Basically block access by user reference. any ideas?
Comment #13
d0t15t commentedthe patch fixes the display issue, but i have not been able to successfully save a rule. doesn't create a log of any error, just seems to not do anything.
Comment #14
dustout commentedi'm having the same issue, this is a pretty bad bug
Comment #15
dustout commentedI have applied this patch, it corrects the form issue, however the access restriction is still not successfully applied
Comment #16
clicchick commentedIs this module still unusable?
Comment #17
marco commentedI wrote a patch trying to make the module usable, I'd be grateful if you could review it:
http://drupal.org/node/1214080
thank you
Comment #18
clicchick commentedComment #19
skizzo commentedMarco's patch works for me.
Marking as duplicate of http://drupal.org/node/1214080