Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supprimer la référence croisée user.articles #1155

Open
thom4parisot opened this issue Dec 12, 2024 · 0 comments
Open

Supprimer la référence croisée user.articles #1155

thom4parisot opened this issue Dec 12, 2024 · 0 comments

Comments

@thom4parisot
Copy link
Member

thom4parisot commented Dec 12, 2024

Autant en faire une méthode de requête de modèle (notamment pour distinguer les articles par niveau de permission — écriture, partage, etc.).

Article.byUser(userModel, { workspace })

userModel.getArticles()
userModel.getArticles({ workspace, permissions: ['write'] })

Ça n'a aucun impact dans l'interface, c'est du travail de maintenance/conception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant