Update admin to superadmin in sidebar

This commit is contained in:
Alex Holliday committed 2024-08-27 09:13:48 -07:00
1 parent ce542879e7
commit 3fbd986bbe
1 file changed
+2 -2
+2 -2
View File
@@ -289,7 +289,7 @@ function Sidebar() {
if (
child.name === "Team" &&
authState.user?.role &&
!authState.user.role.includes("admin")
!authState.user.role.includes("superadmin")
) {
return null;
}
@@ -349,7 +349,7 @@ function Sidebar() {
if (
child.name === "Team" &&
authState.user?.role &&
!authState.user.role.includes("admin")
!authState.user.role.includes("superadmin")
) {
return null;
}