Expose admin controls to mods

This commit is contained in:
Chris Blanchard 2015-10-22 22:59:47 +01:00
parent b7267884c9
commit f898c0f6d4
2 changed files with 2 additions and 2 deletions

View file

@ -727,7 +727,7 @@ var Gatherers = React.createClass({
let self = this;
let user = this.props.user;
let gather = this.props.gather;
let admin = (user && user.admin);
let admin = (user && user.admin) || (user && user.moderator);
let thisGatherer = this.props.thisGatherer;
let gatherers = gather.gatherers
.sort((a, b) => {

View file

@ -307,7 +307,7 @@ var CurrentUser = React.createClass({
render() {
if (this.props.user) {
var adminOptions;
if (this.props.user.admin) {
if (this.props.user.admin || this.props.user.moderator) {
adminOptions = (
<li>
<a href="#" data-toggle="modal" data-target="#adminmodal">