function buildAllPermissions() {
  return _.map(PERMISSIONS, ({displayName, description}, permissionName) => {
    if (!PERMISSIONS[permissionName]) {
      console.error('Could not find details for plutonium permission!') // eslint-disable-line no-console
      return {
        name: permissionName,
        displayName: '',
        description: '',
        resources: [],
      }
    }

    return {
      name: permissionName,
      displayName,
      description,
      resources: [],
    }
  })
}
// permissions. Used when a list of all available permissions is needed.
permissions. Used when a list of all available permissions is needed.
permissions . Used when a list of all available permissions is needed .
function buildAllPermissions() {
  return _.map(PERMISSIONS, ({displayName, description}, permissionName) => {
    if (!PERMISSIONS[permissionName]) {
      console.error('Could not find details for plutonium permission!') 
      return {
        name: permissionName,
        displayName: '',
        description: '',
        resources: [],
      }
    }
    return {
      name: permissionName,
      displayName,
      description,
      resources: [],
    }
  })
}
function buildAllPermissions ( ) { return _ . map ( PERMISSIONS , ( { displayName , description } , permissionName ) => { if ( ! PERMISSIONS [ permissionName ] ) { console . error ( 'Could not find details for plutonium permission!' ) return { name : permissionName , displayName : '' , description : '' , resources : [ ] , } } return { name : permissionName , displayName , description , resources : [ ] , } } ) }
permissions.
permissions .
// eslint-disable-line no-console