tac_lite causes errors with new users (with patch)

bennetts2 - October 1, 2009 - 10:53
Project:Taxonomy Access Control Lite
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi,

I'm seeing errors on the first page seen by a new user. The errors are caused by tac_lite calling user_access() when the user hasn't been fully initialised. In my case I was seeing the problem on a Drupal install which used both tac_lite and webserver_auth.

I've done a trivial patch to the tac_lite_user() hook so that it only calls user_access() for ops that tac_lite cares about. As well as fixing my error I guess that this will be a (tiny) performance improvement.

Steve.

AttachmentSize
tac_lite-new_user.patch993 bytes

#1

Dave Cohen - October 1, 2009 - 13:30
Status:active» postponed (maintainer needs more info)

What is the $op when you see the error? What is the error?

 
 

Drupal is a registered trademark of Dries Buytaert.