diff options
Diffstat (limited to 'models/user')
-rw-r--r-- | models/user/user.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/models/user/user.go b/models/user/user.go index 125c643f3e..fbd8df9472 100644 --- a/models/user/user.go +++ b/models/user/user.go @@ -1314,3 +1314,10 @@ func IsUserVisibleToViewer(ctx context.Context, u, viewer *User) bool { } return false } + +func GetOrderByName() string { + if setting.UI.DefaultShowFullName { + return "full_name, name" + } + return "name" +} |