Skip to content

Commit 3cc5505

Browse files
author
Martin Fenner
committed
handle missing user uid. datacite/datacite#911
1 parent 3649be0 commit 3cc5505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/user.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def is_admin_or_staff?
3737

3838
# Helper method to check for personal account
3939
def is_person?
40-
uid.start_with?("0")
40+
uid.to_s.start_with?("0")
4141
end
4242

4343
def role_name

0 commit comments

Comments
 (0)