10 lines
273 B
JavaScript
10 lines
273 B
JavaScript
import appSettings from '../../app-settings'
|
|
|
|
/**
|
|
* @param {OAuthUserInfo} githubUser
|
|
* @return {Boolean}
|
|
*/
|
|
export function isDirectoryAdmin(githubUser) {
|
|
if (!githubUser) return false
|
|
return appSettings.directoryAdmins.includes(githubUser.name.toLowerCase())
|
|
} |