Treat non-validated but trusted OpenID accounts as "registered users"
for commenting purposes.
Patch by novalis.
diffs (15 lines):
diff -r b8b7f42b8a41 -r 62bfce9c7c3e cgi-bin/talklib.pl
--- a/cgi-bin/talklib.pl Sun Oct 04 00:47:02 2009 +0000
+++ b/cgi-bin/talklib.pl Mon Oct 05 15:48:52 2009 -0500
@@ -1378,7 +1378,10 @@ sub talkform {
if (LJ::OpenID->consumer_enabled) {
# OpenID user can post if the account has validated e-mail address
- if (defined $oid_identity && $remote->is_validated) {
+ # or if the account has been granted access by the journal
+ if ( defined $oid_identity && ( $remote->is_validated ||
+ $journalu->trusts( $remote ) )
+ ) {
my $logged_in = LJ::ehtml($remote->display_name);
$ret .= "<tr valign='middle' id='oidli' name='oidli'>";
if (LJ::is_banned($remote, $journalu)) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog