Allow usePolicy to fetch missing policies

This commit is contained in:
Tom Moor
2022-08-25 10:06:44 +02:00
parent 983010b5d8
commit 60309975e0
32 changed files with 91 additions and 53 deletions

View File

@@ -24,7 +24,7 @@ function Groups() {
const { t } = useTranslation();
const { groups } = useStores();
const team = useCurrentTeam();
const can = usePolicy(team.id);
const can = usePolicy(team);
const [
newGroupModalOpen,
handleNewGroupModalOpen,