Skip to content

Commit

Permalink
fix adding relation when restricted
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Feb 19, 2024
1 parent c2f59c9 commit 5192108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/component/menu/block/relation/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const MenuBlockRelationView = observer(class MenuBlockRelationView extends React
<Section key={i} {...item} index={i} />
))}
</div>
{!readonly ? <ItemAdd /> : ''}
{!readonly && allowedRelation ? <ItemAdd /> : ''}
</div>
);
};
Expand Down

0 comments on commit 5192108

Please sign in to comment.