Export role name consts in client to fix Authorized HOC

Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>
pull/10616/head
Jared Scheib 2017-10-24 17:04:06 -07:00 committed by Alex Paxton
parent 8cc9167448
commit a7fab31a21
1 changed files with 4 additions and 4 deletions

View File

@ -2,10 +2,10 @@ import React, {Component, PropTypes} from 'react'
import {connect} from 'react-redux'
const VIEWER_ROLE = 'viewer'
const EDITOR_ROLE = 'editor'
const ADMIN_ROLE = 'admin'
const SUPERADMIN_ROLE = 'superadmin'
export const VIEWER_ROLE = 'viewer'
export const EDITOR_ROLE = 'editor'
export const ADMIN_ROLE = 'admin'
export const SUPERADMIN_ROLE = 'superadmin'
const getRoleName = ({roles: [{name}, ..._]}) => name