diff --git a/frontend/src/Editor/ManageAppUsers.jsx b/frontend/src/Editor/ManageAppUsers.jsx index 7b78ba3b8e..e41004f371 100644 --- a/frontend/src/Editor/ManageAppUsers.jsx +++ b/frontend/src/Editor/ManageAppUsers.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import { appService } from '@/_services'; +import { appService, authenticationService } from '@/_services'; import Modal from 'react-bootstrap/Modal'; import Button from 'react-bootstrap/Button'; import { toast } from 'react-hot-toast'; @@ -13,6 +13,7 @@ import { Link } from 'react-router-dom'; class ManageAppUsersComponent extends React.Component { constructor(props) { super(props); + this.currentUser = authenticationService.currentUserValue; this.state = { showModal: false, @@ -258,9 +259,11 @@ class ManageAppUsersComponent extends React.Component { - - Manage users - + {this.currentUser?.admin && ( + + Manage users + + )}