@@ -123,7 +132,7 @@ class Dashboard extends ImmutablePureComponent {
-
@@ -132,7 +141,7 @@ class Dashboard extends ImmutablePureComponent {
{v.software} {v.version}
- {supportsEmailList &&
+ {supportsEmailList && isAdmin(account) &&
- subscribers.csv
diff --git a/app/soapbox/features/ui/components/link_footer.js b/app/soapbox/features/ui/components/link_footer.js
index 6764be2e8..4b3a35fed 100644
--- a/app/soapbox/features/ui/components/link_footer.js
+++ b/app/soapbox/features/ui/components/link_footer.js
@@ -6,7 +6,7 @@ import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { openModal } from '../../../actions/modal';
import { logOut } from 'soapbox/actions/auth';
-import { isStaff } from 'soapbox/utils/accounts';
+import { isStaff, isAdmin } from 'soapbox/utils/accounts';
import sourceCode from 'soapbox/utils/code';
const mapStateToProps = state => {
@@ -35,10 +35,8 @@ const LinkFooter = ({ onOpenHotkeys, account, onClickLogOut }) => (
- {isStaff(account) && <>
-
-
- >}
+ {isStaff(account) && }
+ {isAdmin(account) && }
>}
diff --git a/app/soapbox/features/ui/index.js b/app/soapbox/features/ui/index.js
index 05581ac11..a140cd0a7 100644
--- a/app/soapbox/features/ui/index.js
+++ b/app/soapbox/features/ui/index.js
@@ -38,7 +38,7 @@ import SidebarMenu from '../../components/sidebar_menu';
import { connectUserStream } from '../../actions/streaming';
import { Redirect } from 'react-router-dom';
import Icon from 'soapbox/components/icon';
-import { isStaff } from 'soapbox/utils/accounts';
+import { isStaff, isAdmin } from 'soapbox/utils/accounts';
import ProfileHoverCard from 'soapbox/components/profile_hover_card';
import { getAccessToken } from 'soapbox/utils/auth';
@@ -429,6 +429,9 @@ class UI extends React.PureComponent {
if (isStaff(account)) {
this.props.dispatch(fetchReports({ state: 'open' }));
this.props.dispatch(fetchUsers({ page: 1, filters: 'local,need_approval' }));
+ }
+
+ if (isAdmin(account)) {
this.props.dispatch(fetchConfig());
}