Skip to content

Commit

Permalink
g menti
Browse files Browse the repository at this point in the history
  • Loading branch information
Truiteseche committed Nov 11, 2024
1 parent 8d79577 commit 46dd4af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/app/Messaging/Messaging.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export default function Messaging({ isLoggedIn, activeAccount, fetchMessages, fe


const module = accountsListState[activeAccount].modules?.find(module => module.code === "MESSAGERIE");
let canSendMessages = (module?.params?.destAdmin ?? "1") === "1" ||
(module?.params?.destEleve ?? "1") === "1" ||
(module?.params?.destFamille ?? "1") === "1" ||
(module?.params?.destProf ?? "1") === "1" ||
(module?.params?.destEspTravail ?? "1") === "1";
let canSendMessages = (module?.params?.destAdmin ?? "1") === "1" ||
(module?.params?.destEleve ?? "1") === "1" ||
(module?.params?.destFamille ?? "1") === "1" ||
(module?.params?.destProf ?? "1") === "1" ||
(module?.params?.destEspTravail ?? "1") === "1";
if (accountsListState[activeAccount].accountType !== "E") {
// canSendMessages = true;
canSendMessages = true;
}

const [isEditingFolder, setIsEditingFolder] = useState(false);
Expand Down

0 comments on commit 46dd4af

Please sign in to comment.