diff --git a/UI/src/components/role-editor/index.js b/UI/src/components/role-editor/index.js
index 9bd1875..9da0cd9 100644
--- a/UI/src/components/role-editor/index.js
+++ b/UI/src/components/role-editor/index.js
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
import { Set } from 'immutable'
import { connect } from 'react-redux'
import { DropTarget } from 'react-dnd'
-import { Link, Prompt } from 'react-router-dom'
+import { Link, Prompt, Redirect } from 'react-router-dom'
import { Scrollbars } from 'react-custom-scrollbars'
import * as Actions from './actions'
import * as PickerActions from '../role-picker/actions'
@@ -112,6 +112,11 @@ class RoleEditor extends Component {
}
render () {
+ const { server } = this.props
+ if (server.getIn(['server', 'perms', 'canManageRoles']) !== true) {
+ return