This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 68676d9 Attrs are stored as an array
68676d9 is described below
commit 68676d9cd534de019c2d82f60abb2657220c0048
Author: Sebb <[email protected]>
AuthorDate: Sun May 23 14:32:24 2021 +0100
Attrs are stored as an array
---
lib/whimsy/asf/ldap.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/ldap.rb b/lib/whimsy/asf/ldap.rb
index 8724dad..c95f68c 100644
--- a/lib/whimsy/asf/ldap.rb
+++ b/lib/whimsy/asf/ldap.rb
@@ -777,7 +777,7 @@ module ASF
# preloading the <tt>asf-banned</tt> attributes for these people.
def asf_banned?
# No idea what this means (yet)
- attrs['asf-banned'] == 'yes'
+ attrs['asf-banned']&.first == 'yes'
end
# is the login marked as inactive?