We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd9c25 commit 5c82966Copy full SHA for 5c82966
features/userSettings/UserSettingsContent/ContextSection/contextActions/UnitActions.tsx
@@ -23,7 +23,9 @@ export const UnitActions = () => {
23
<DeleteUnitListItem unit={unit} onDelete={() => setUnit(undefined)} />
24
)}
25
{isUnitOwner && unit && organisation?.name !== "Default" && <EditUnitListItem unit={unit} />}
26
- {unit && <CreateProjectListItem unit={unit} />}
+ {unit && (unit.caller_is_member || unit.owner_id === user.username) && (
27
+ <CreateProjectListItem unit={unit} />
28
+ )}
29
</List>
30
);
31
};
0 commit comments