If you had implemented the authentication in your app, then I think, it would be more easy to develop other things more complex. Remember in Django you can give permission at users group
Gabriel Araya Garcia GMI - Desarrollo de Sistemas Informáticos El mar, 22 mar 2022 a las 10:12, 'AnneVerm' via Django users (< [email protected]>) escribió: > I'm working on a web aplication in which I have a supertype node which is > subtyped by organization, person and thing. Nodes can have permission to > create/update/delete addresses, events, articles, pages etc. which all have > a foreignkey referencing node. > > I'm struggling with the authentication and authorization. If I add a node > to the user I could use UserPassesTestMixin like this: > > def test_func(self): > obj = self.get_object() > return obj.node == self.request.node > > However, the consequence is that every node is related to a user > one-to-one, which in case of things is not ideal. > > I hope someone could point me in the right direction to solve this problem. > > Kind regards, > > Anne > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/03685bda-5257-42e0-88ef-1973de3411dfn%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/03685bda-5257-42e0-88ef-1973de3411dfn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKVvSDDWQEE3iJwTt%3DRzNM9KtjD-%2BHynLnz2%3Dp6-gYxVerkOQg%40mail.gmail.com.

