We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b485ca commit fd35a7fCopy full SHA for fd35a7f
app/javascript/components/shared_components/Footer.jsx
@@ -26,7 +26,7 @@ export default function Footer() {
26
const { data: env } = useEnv();
27
const { data: links } = useSiteSetting(['Terms', 'PrivacyPolicy']);
28
const currentUser = useAuth();
29
- const isAdmin = currentUser && currentUser.role && currentUser?.role.name === 'Administrator';
+ const isAdmin = currentUser?.role?.name === 'Administrator' || currentUser?.role?.name === 'SuperAdmin';
30
31
return (
32
<footer id="footer" className="footer background-whitesmoke text-center">
0 commit comments