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

  return Object.assign(
    {},
    {
      name: permissionName,
      resources,
    },
    PERMISSIONS[permissionName]
  )
}
// with more detail like a description and display name.
with more detail like a description and display name.
with more detail like a description and display name .
function buildPermission(permissionName, resources) {
  if (!PERMISSIONS[permissionName]) {
    console.error('Could not find details for plutonium permission!') 
    return {
      name: permissionName,
      displayName: '',
      description: '',
      resources: [],
    }
  }
  return Object.assign(
    {},
    {
      name: permissionName,
      resources,
    },
    PERMISSIONS[permissionName]
  )
}
function buildPermission ( permissionName , resources ) { if ( ! PERMISSIONS [ permissionName ] ) { console . error ( 'Could not find details for plutonium permission!' ) return { name : permissionName , displayName : '' , description : '' , resources : [ ] , } } return Object . assign ( { } , { name : permissionName , resources , } , PERMISSIONS [ permissionName ] ) }
with more detail like a description and display name.
with more detail like a description and display name .
// eslint-disable-line no-console