Update admin to superadmin in sidebar
This commit is contained in:
1 parent
ce542879e7
commit
3fbd986bbe
1 file changed
+2
-2
@@ -289,7 +289,7 @@ function Sidebar() {
|
|||||||
if (
|
if (
|
||||||
child.name === "Team" &&
|
child.name === "Team" &&
|
||||||
authState.user?.role &&
|
authState.user?.role &&
|
||||||
!authState.user.role.includes("admin")
|
!authState.user.role.includes("superadmin")
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -349,7 +349,7 @@ function Sidebar() {
|
|||||||
if (
|
if (
|
||||||
child.name === "Team" &&
|
child.name === "Team" &&
|
||||||
authState.user?.role &&
|
authState.user?.role &&
|
||||||
!authState.user.role.includes("admin")
|
!authState.user.role.includes("superadmin")
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user