We use django groups for that. So we give groupnames like ALLOW_SOMETHING
and then in code and templates we do check if user has that group or not.
ti 16. heinäk. 2019 klo 19.26 Tal kirjoitti:
> I know you can have permissions on individual models that control which
> users have access to them,
I know you can have permissions on individual models that control which
users have access to them, but I need something for my apps.
Ex. If a user logs in, does he have access to the store_app? The forum_app?
etc.
I have a solution that looks something like this:
models.py:
class
2 matches
Mail list logo