🐛 Hide admin of their office if super admin

This commit is contained in:
Maxime Lalo 2023-09-28 13:41:22 +02:00
parent 0e51f81889
commit f1587c3e55

View File

@ -285,7 +285,10 @@ export default function UserInformations(props: IProps) {
<Typography typo={ITypo.P_SB_18}>Attribuer un titre</Typography>
</div>
<div className={classes["second-line"]}>
{!isSuperAdminChecked && (
<Switch label="Admin de son office" checked={isAdminChecked} onChange={handleAdminChanged} />
)}
<Switch
label="Super-admin LeCoffre.io"
checked={isSuperAdminChecked}