Closed (fixed)
Project:
Auto Assign Role
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2012 at 12:34 UTC
Updated:
24 Jul 2014 at 10:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amitgoyal commentedLooks good to me.Looks good to me!
Comment #2
damienmckennaCommitted.
Comment #3
dmadruga commentedThe problem here is that when autoassignrole_auto_active is enabled AAR will set the automatic roles when the admin creates an account even if autoassignrole_admin_active is disabled.
This IF is always TRUE when autoassignrole_auto_active is enabled.
I changed the IF to:
if ((variable_get('autoassignrole_auto_active', 0) && !user_access('administer users')) || (variable_get('autoassignrole_admin_active', 0) && user_access('administer users')))Comment #4
mike.davis commentedThis change makes sense and has been commited
Comment #7
mike.davis commentedThe automated tests were failing due to the variable not being set by the test.
Comment #8
mike.davis commentedThis is strange that the test is failing on the test bot as running the tests locally were broken & fixed by this patch and retesting it on simplytest.me were again broken before applying the patch but worked after applying the patch.
I'm going to commit this in to see if this helps with the other patches that are failing.
Comment #10
mike.davis commentedI am closing this now as this patch needed to be applied in order to fix the 7.x-1.x branch so that the automated tests could run to completion.