mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-23 04:52:00 +00:00
Expose admin controls to mods
This commit is contained in:
parent
b7267884c9
commit
f898c0f6d4
2 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue