Commit graph

120 commits

Author SHA1 Message Date
Colin Kuskie
20e49b51d6 Try to trap errors while loading classes. Fixes bug #12321. 2012-01-26 16:04:02 -08:00
Colin Kuskie
e65368c7c1 Fix group membership by scratch variables for Visitor. Fixes bug #12195. Kudos to trex for the base patch. Also fix the same problem in the IP based group membership. 2011-08-22 19:17:58 -07:00
Doug Bell
4557e2088a handle reset problems more gracefully 2011-06-13 17:53:26 -05:00
Doug Bell
2a519d5ae9 change group INSERT to REPLACE to prevent merge problems in multi-master DB clusters 2011-03-21 18:49:45 -05:00
Colin Kuskie
8aee259282 Fix an issue where the default cache time of WebGUI::Cache would cause Groups with caches disabled (groupCacheTimeout=0) to actually be cached for 60 seconds. Fixes bug #12038. 2011-02-07 13:36:46 -08:00
Doug Bell
5f89a281e9 fix #11965: FriendMgr pagination and getUsersNotIn 2010-11-16 13:26:38 -06:00
Colin Kuskie
d5d6381bd9 Remove Product Managers as a protected group. 2010-09-21 16:36:42 -07:00
Colin Kuskie
2c1e2b9d3e quickArray returns 1 row, buildArray returns all rows 2010-06-11 10:48:11 -07:00
Graham Knop
0ddd109775 reset groups for all assets in database instead of those listed in config file 2010-06-10 10:09:55 -05:00
Scott Walters
867095d811 A user removed from a group with deleteUsers() will still appear to be in that
group according to Inbox.pm, User::getGroupIdsRecursive() and User::getGroups().
Groups.pm wasn't clearing the cache key "getGroupsForUser" in clearCaches().
Tests and fix.
2010-06-08 13:49:02 -04:00
Doug Bell
cc87552a22 weaken all session refs 2010-06-01 16:23:48 -05:00
Colin Kuskie
d2b6a7fff1 Fix a bug in how groups using IP filters cache the user Visitor. Also, significant speedups in group lookups. Fixes bug #11552. 2010-05-16 22:11:33 -07:00
Colin Kuskie
18de531bc1 Fix typos in recursive Group->getAllUsers calls. Fixes bug #11566 2010-05-11 18:41:23 -07:00
Colin Kuskie
e46ad0d8fd Correct POD for addUsers in Group.pm 2009-10-13 16:36:14 -07:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Graham Knop
68d75637bb allow WebGUI::Group->vitalGroup to be called on an object 2009-09-23 06:41:55 -05:00
Colin Kuskie
b91a1effa8 Make a nice session object to use for Group->new. 2009-09-18 09:17:48 -07:00
Colin Kuskie
831664397d Remove group cleanup check for AdSpace group. 2009-09-02 19:04:50 -07:00
Colin Kuskie
da41082cbf Have just 1 list of groups that should not be deleted. 2009-07-05 20:33:31 +00:00
Colin Kuskie
f652028ef0 Remove debugging code. 2009-06-12 20:55:48 +00:00
Colin Kuskie
fb33138e33 Replace fields that use a group that is deleted with a safe group, like Admin. rfe#76 2009-06-12 20:43:03 +00:00
JT Smith
fa97bbc58c - Made a change to LDAP auth that adds an OR to that query so that it also searches for a row with fieldData REGEXP '^uid=(value-from-ldap-directory-server),'. 2009-06-05 14:34:28 +00:00
Colin Kuskie
3ffe9fd416 Document that getUserList returns users sorted by username. 2009-04-16 15:13:10 +00:00
Colin Kuskie
0cbe0cc117 Correct the Group.pm POD for delete. 2009-04-13 02:30:20 +00:00
Colin Kuskie
7ad927092a More POD docs about getAllUsers returning a unique'ed list of userIds. 2009-03-13 23:17:50 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
758a321e70 modules, tests, etc shouldn't be set as executable 2008-11-24 04:01:23 +00:00
Frank Dillon
4ff722bd5d Pluggable Account system added to WebGUI with new Profile, Inbox, Friends, User, and Shop interfaces. 2008-11-15 11:39:23 +00:00
Doug Bell
0d9dcbfb12 merge 8376 2008-11-14 23:08:10 +00:00
Frank Dillon
615e0e3746 lots of changes 2008-11-12 23:03:42 +00:00
Colin Kuskie
d6aecc2d90 Admins are in all groups, even group admin groups 2008-10-14 23:15:31 +00:00
Frank Dillon
a253c67018 Fixed an problem in getUsersNotIn which was causing the wrong users to be returned. 2008-09-27 12:18:43 +00:00
Frank Dillon
cde696c767 Added isAdHocMailGroup flag which can be used to build temporary groups of users to send notifications to. Once the users have been added to the mail queue in WebGUI::Mail::send, the group is deleted. 2008-09-22 22:26:59 +00:00
Colin Kuskie
8d561101b5 Add a test to User.t to make sure it isn't leaking groups.
Update POD in User.pm and Group.pm.
2008-08-01 23:06:23 +00:00
Colin Kuskie
f95f3a96f9 more POD for Group.pm 2008-03-07 02:46:11 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Colin Kuskie
8b84ae3e76 Up coverage of addGroups to 100%.
Change tabs to spaces in group diagrams.
Optimize the addGroups membership check so the expensive getGroupsIn
doesn't have to take place.
Add a label to the foreach.
2007-11-26 05:13:32 +00:00
Graham Knop
865c1d315b merging 7.4 changes 2007-11-22 06:09:27 +00:00
Colin Kuskie
17441c13c2 Fixed broken friends method caching. The cache was never populated, so it
would fail every time.
Added a missing DESTROY method to Group.pm.  That way it won't puke when trying
to call an undefined method when the User object is cleaned up.
Added coverage tests for friends method in User.pm
2007-10-31 21:00:54 +00:00
Colin Kuskie
0f3505a46f Group does not use Tie::CPHash (via the dead %group variable) nor WebGUI::Auth 2007-10-30 20:33:48 +00:00
Graham Knop
21b37954c4 finding all groups or users don't fail if one invalid group 2007-09-27 08:49:20 +00:00
Graham Knop
a62a7e0ec1 WebGUI::Group->new didn't check group validity 2007-09-26 11:46:18 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
JT Smith
1013381c36 fixed an error in the groups/db system where removing a dblink connected to a group would produce a fatal error 2007-04-11 17:24:56 +00:00
JT Smith
e1c86d7f95 - fix: fixed an error in the groups/db system where removing a dblink connected to a group would produce a fatal error 2007-04-05 03:43:37 +00:00
Nik Ogura
cb7f79543a changed pod from 'days' to 'seconds' for expireOffset et al. to reflect what's actually happening 2007-03-27 06:07:50 +00:00
Colin Kuskie
ec3eebda9b remove duplicate code in addUsers, add more tests to Group.t to cover 2007-03-07 00:16:22 +00:00
Colin Kuskie
d948cb4a33 fix typo in expireNotifyOffset method which prevents it from setting this value 2007-03-04 06:22:15 +00:00