Closed (fixed)
Project:
User Restrictions
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Oct 2008 at 11:20 UTC
Updated:
23 Apr 2014 at 08:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedI am marking this task as postponed, as the code will be implemented as an update function, after the first official release will released.
Comment #2
fizk commentedThe difference between D6 Access rules and this module is that this module doesn't have the "Check rules" page where you can test username, email, and hostname rules.
I'll open a separate issue for this as a feature request (#1397268: Add ability to check rules).
Comment #3
Anonymous (not verified) commentedThis issue is about importing the content of the database table used in Drupal 6. That is different from having a "Check rules" page, which is still present in the latest beta release.
There isn't, in the actual code, the possibility to import the settings from the Drupal 6 table. The update function for that purpose is commented out.
Comment #4
fizk commentedWho wrote the update function that's commented out?
Comment #5
Anonymous (not verified) commentedIt's an update function that I found when I started to maintain the module, and that I kept updated with the code I am writing.
Comment #6
adammaloneJust as a note to self,
From the hook_update_N documentation when referring to the second number:
The update function should therefore be
70017000Comment #7
fizk commented@typhonius, are you sure it's not
7000?Comment #8
adammalone@fiz - Yep you're right - no idea how I misread that!
Comment #9
code-brighton commentedHi I uncommented the user_restrictions_update_7102
I threw PDO exception an error on running update.php due to faulty queries. But I fixed these and updated the code and it worked! So thanks for leaving it in there. (Note I hard coded the Access Rule type to 'mail' in the first query "SELECT COUNT(DISTINCT aid) FROM {access} WHERE type = 'mail'" as I only cared about these rule types... you could change this if you wanted. Updated code below:
Comment #10
drummThere is an official release now.
Comment #11
drummHere is a quick patch based on #9. I went ahead and let it have free reign on all types and included the status column.
Comment #12
drummComment #13
adammaloneThanks for these, I'll review and hopefully get something in by later today.
Comment #14
adammaloneI've committed this locally but I'm going to make some more additions before pushing.
Comment #15
drummSounds good.
Comment #16
tvn commentedUntagging. We already imported settings for D7 D.o
Comment #17
adammaloneRecent changes are in the most recent dev, allowing imports on both module upgrade and manually through the UI module.
Comment #18
adammalone