Recognize portal is_staff as admin in webclient

This commit is contained in:
Tanner Collin 2020-01-14 01:54:05 +00:00
parent 437376fc36
commit f869cdff36

View File

@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { Table } from 'semantic-ui-react';
export const isAdmin = (user) => user.is_staff || user.member.is_director;
export const isAdmin = (user) => user.is_staff || user.member.is_director || user.member.is_staff;
export const siteUrl = window.location.protocol + '//' + window.location.hostname;
export const apiUrl = window.location.protocol + '//api.' + window.location.hostname;