mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 07:00:47 +02:00
Admin tools: minor improvements
- enable Projects button in navbar for admin projects page - enable copy of user ID in user info modal - add null check in UserListController (thanks @moschlar)
This commit is contained in:
@@ -290,8 +290,8 @@ function _sortAndPaginate(users, sort, page) {
|
||||
function _formatUserInfo(user, maxDate) {
|
||||
let authMethods = []
|
||||
if (availableAuthMethods.includes('local') && user.hashedPassword) authMethods.push('local')
|
||||
if (availableAuthMethods.includes('saml') && user.samlIdentifiers.length > 0) authMethods.push('saml')
|
||||
if (availableAuthMethods.includes('oidc') && user.thirdPartyIdentifiers.length > 0) authMethods.push('oidc')
|
||||
if (availableAuthMethods.includes('saml') && user.samlIdentifiers?.length) authMethods.push('saml')
|
||||
if (availableAuthMethods.includes('oidc') && user.thirdPartyIdentifiers?.length) authMethods.push('oidc')
|
||||
// If none of the above, mark as LDAP
|
||||
if (availableAuthMethods.includes('ldap') && authMethods.length === 0 && user.loginCount !== 0) authMethods.push('ldap')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user