Export role name consts in client to fix Authorized HOC
Signed-off-by: Alex Paxton <thealexpaxton@gmail.com>pull/10616/head
parent
8cc9167448
commit
a7fab31a21
|
@ -2,10 +2,10 @@ import React, {Component, PropTypes} from 'react'
|
||||||
|
|
||||||
import {connect} from 'react-redux'
|
import {connect} from 'react-redux'
|
||||||
|
|
||||||
const VIEWER_ROLE = 'viewer'
|
export const VIEWER_ROLE = 'viewer'
|
||||||
const EDITOR_ROLE = 'editor'
|
export const EDITOR_ROLE = 'editor'
|
||||||
const ADMIN_ROLE = 'admin'
|
export const ADMIN_ROLE = 'admin'
|
||||||
const SUPERADMIN_ROLE = 'superadmin'
|
export const SUPERADMIN_ROLE = 'superadmin'
|
||||||
|
|
||||||
const getRoleName = ({roles: [{name}, ..._]}) => name
|
const getRoleName = ({roles: [{name}, ..._]}) => name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue