chore: Improve relationship loading, include policies (#6321)
Use model where available in usePolicy
This commit is contained in:
@@ -32,7 +32,7 @@ function CommentMenu({ comment, onEdit, onDelete, className }: Props) {
|
||||
});
|
||||
const { documents, dialogs } = useStores();
|
||||
const { t } = useTranslation();
|
||||
const can = usePolicy(comment.id);
|
||||
const can = usePolicy(comment);
|
||||
const document = documents.get(comment.documentId);
|
||||
|
||||
const handleDelete = React.useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user