Scott Walters
3fe8f9a080
fix nasty data sync bug in WebGUI::User::friends that was causing the friendsGroup assigned to a user t
...
o immediately be lost and replaced a different one in a call to WebGUI::Friends->add, which creates sep
erate instances of users
2012-06-19 18:04:12 -04:00
Colin Kuskie
073093e30c
Avoid autivivifying hashes that are live references or will be cached later in User/Group.
2011-08-22 20:05:01 -07:00
Colin Kuskie
428ea58327
Add better support for user profile fields for addresses to the Cart and the EMS.
2011-08-11 16:27:29 -07:00
Colin Kuskie
814845b7f1
Do not call group methods on an undefined value. IOW, do not assume that we got a group.
2011-06-28 17:16:09 -07:00
Doug Bell
3fbcb4aca9
fix 11945 slow sql for duplicate email lookup
2011-01-03 21:28:41 -06:00
Colin Kuskie
196d3b0437
Uncaching the user should be last thing that is done before removing data from the database.
2010-12-22 11:33:39 -08:00
Colin Kuskie
897c2e0248
If a user does not have privacy data for a field, check back with the field for the privacy default. Fixes bug #11951 . Added ProfileField cleanup code.
2010-11-09 11:06:57 -08:00
Colin Kuskie
7f0657927d
Add purge method to Shop::Credit, tests.
2010-10-04 14:20:08 -07:00
Colin Kuskie
30e869b66d
Better cleanup of Inbox messages. Encapsulate all SQL in Inbox/Message. Fix workflow. Upgrade script to cleanup state table. Fixes bug #11595 .
2010-06-07 10:44:12 -07: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
cb5144f809
Check for a valid group before using it.
2010-02-03 17:11:59 -08: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
Colin Kuskie
1e98e34128
RE: Profiles, public != visitor. fixes #10907
2009-09-06 19:37:25 -07:00
Colin Kuskie
fea30d0db0
Fix getProfileUrl, so it works with preventProxyCache. fixes #10877
2009-09-02 19:07:54 -07:00
Patrick Donelan
8ece5d63c6
User::delete should remove corresponding rows from inbox_messageState when delete user inbox rows
2009-08-19 07:00:31 +00:00
Colin Kuskie
c7a4c173cc
Add tests for new SMS address method.
2009-08-16 16:11:13 +00:00
Patrick Donelan
388a0b1267
Fixed a whole lot of brokenness in Inbox SMS/Email notifications
...
WebGUI::Inbox::Message::create now passes isInbox flag to WebGUI::Mail::Send::create
so that per-user notification settings get used
SMS Gateway setting field is now 'text' instead of 'email' so that user can enter a
properly formed value (such as 'myemailgateway.com', which is not an email address).
Added SMS notification template as distinct from email notification template because
SMSs should not be HTML and in general you will want to make your SMS notification
message a lot shorter than your html email notification message (160 char limits in
many countries). As a result, SMSs are now sent as separate emails to gateway rather
than being CCd on email notification.
Added smsGatewaySubject setting because many SMS Gateways use email subject for
authentication. For consistency, also added Email notification email subject.
Fixed handling of different combinations of site-wide sendInboxNotificationsOnly with
per-user receiveInboxEmailNotifications and receiveInboxSmsEmailNotifications.
* sendInboxNotificationsOnly && receiveInboxEmailNotifications = email notification
* sendInboxNotificationsOnly && !receiveInboxEmailNotifications = no email
* !sendInboxNotificationsOnly = ignore receiveInboxEmailNotifications
* In all cases, SMS is optional and only dependent on receiveInboxSmsEmailNotifications
Updated tests and i18n
2009-08-16 09:42:35 +00:00
Yung Han Khoe
1ea08936f4
fixed #9851 : New Users have blank profile field privacy settings
2009-06-03 15:24:20 +00:00
Colin Kuskie
61832b62b9
When a user is deleted, delete any address books as well. Uses the API to get the
...
Addresses, too. With tests and upgrade script to take care of old address books.
2009-06-03 02:12:23 +00:00
Colin Kuskie
1e52f21fcb
Fix errors in the getInstancesForObject and code that used it.
2009-05-21 15:20:25 +00:00
Graham Knop
d011dde621
add some convenience methods and improve user deletion code
2009-05-21 14:49:23 +00:00
Graham Knop
206a45e7c2
don't query the database for profile field existance on every access
2009-05-20 19:57:08 +00:00
Doug Bell
1afff052c4
added new API methods to User for easier use
2009-05-15 18:10:22 +00:00
Doug Bell
1f96d708bf
user-services
2009-05-15 18:03:03 +00:00
Doug Bell
0cf79f7264
added new API methods to User for easier use
2009-05-15 18:02:53 +00:00
Doug Bell
93819cda0c
Adding new API to User. get update enable disable
2009-05-14 22:16:50 +00:00
Colin Kuskie
f54e975c14
Enable WebGUI sites to send SMS messages as inbox notifications.
2009-05-13 21:55:33 +00:00
Colin Kuskie
62df11ac91
Remove old legacy code.
2009-04-07 17:29:46 +00:00
Colin Kuskie
eab3417396
Add POD to bring POD coverage up to 100%
2009-04-01 03:11:06 +00:00
Colin Kuskie
fa15f92b68
Fix POD for User.pm
...
Add POD for HTML.pm
2009-03-31 03:20:57 +00:00
Colin Kuskie
eff2d5295b
Don't make the 2nd Friend object unless it is needed.
2009-03-29 04:13:33 +00:00
Colin Kuskie
bc3b204d9b
Add a method to return emails for Inbox notifications.
...
Method is driven by profile data and settings.
2009-03-16 11:17:58 -07:00
Doug Bell
a58300f8d5
fixed #9852 : Users can accept private messages from Visitor, but Visitor cannot send messages
2009-03-04 03:28:48 +00:00
Graham Knop
24da723629
updating copyright year
2009-02-20 23:47:30 +00:00
Doug Bell
30158b7f8d
fixed: Collab groupToEditPost shouldn't be empty
...
fixed: WebGUI::User->isInGroup has bad defaulting behavior
2009-02-17 23:21:30 +00:00
Colin Kuskie
41da738e0e
Fix handling of multi-form and multiple select form elements by emitting
...
a hidden form variable to make sure the form element was in the generated form.
Changes in User and ProfileField to support this.
2009-01-26 21:03:23 +00:00
Frank Dillon
18dd11345c
Fixed a bug that wouldn't allow admins to save a user profile if email address is required
2008-12-23 03:35:58 +00:00
Colin Kuskie
6455b1b85c
fix a syntax warning in User.pm
2008-11-21 16:48:20 +00:00
Martin Kamerbeek
06b65b7e4b
Reapplying 7.6 specific changes.
2008-11-21 14:01:12 +00:00
Martin Kamerbeek
fd73f98e4e
Fixed a bug where WG::User would not check whether the friends group exists or not. As a result it was not possible
...
to eg. delete such users.
2008-11-21 13:30:16 +00:00
Frank Dillon
6eff997f81
rfe: User Profile Privacy Settings ( #507 ) - users now have granular control of whether or not their profile fields are viewable - admin settings still apply
2008-11-19 05:18:58 +00:00
Frank Dillon
70bd363814
fixed a bug which would allow visitors to be added to your friends list.
2008-11-18 03:35:27 +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
Frank Dillon
11d18075fa
Account release candidate - final changes before merge
2008-11-15 02:39:23 +00:00
Doug Bell
0d9dcbfb12
merge 8376
2008-11-14 23:08:10 +00:00
Doug Bell
2f8869292f
merging 8374
2008-11-14 22:19:15 +00:00
Frank Dillon
615e0e3746
lots of changes
2008-11-12 23:03:42 +00:00
JT Smith
ef120fb06b
Added isVisitor, isAdmin, and isRegistered methods to User object instead
...
of hard coding checks everywhere with group ids. And updated the code base
to match.
2008-09-16 22:32:36 +00:00
Graham Knop
82d7ae944e
prevent excessive checks for profile field existence
2008-08-15 15:49:33 +00:00