Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function SharedAccess() {
const deleteSharedAccess = useDeleteSharedAccess(friendlyId);
const { data: room } = useRoom(friendlyId);
const currentUser = useAuth();
const isAdmin = currentUser?.role.name === 'Administrator';
const isAdmin = currentUser?.role.name === 'Administrator' || currentUser?.role.name === 'SuperAdmin';

if (sharedUsers?.length || searchInput) {
return (
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/shared_components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Footer() {
const { data: env } = useEnv();
const { data: links } = useSiteSetting(['Terms', 'PrivacyPolicy']);
const currentUser = useAuth();
const isAdmin = currentUser && currentUser.role && currentUser?.role.name === 'Administrator';
const isAdmin = currentUser?.role?.name === 'Administrator' || currentUser?.role?.name === 'SuperAdmin';

return (
<footer id="footer" className="footer background-whitesmoke text-center">
Expand Down
Loading