You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
Is there a way with the current feature set that I can apply roles specifically to a model, not app wide?
Here's what I'd like to do considering 2 models: Program and Article.
A user creates a Program and is the owner or admin of that program. User can then create Articles that belong to that program. He can also give other users of the app "editor", a role, rights to his Program that allows those "editors" create/edit articles under said program. Another role would be just a 'reader' role that only allows other users to view articles
The text was updated successfully, but these errors were encountered:
That's a basic example. But it may be a model that works for your use case. In your server.policy file you can check for that role, and set specific routes to only allow users with the required role.
Is there a way with the current feature set that I can apply roles specifically to a model, not app wide?
Here's what I'd like to do considering 2 models:
Program
andArticle
.A user creates a
Program
and is the owner or admin of thatprogram
. User can then createArticles
that belong to thatprogram
. He can also give other users of the app "editor", a role, rights to hisProgram
that allows those "editors" create/editarticles
under saidprogram
. Another role would be just a 'reader' role that only allows other users to viewarticles
The text was updated successfully, but these errors were encountered: