permissions mapping

27 views
Skip to first unread message

Ssentumbwe Enoch

unread,
Sep 7, 2021, 9:12:53 AMSep 7
to Django users
I want to design a factory management application but I need some guidance roles permissions.
I want to divide the floor into sections whereby a supervisor in section A can review and edit section A's functions without having rights to edit section B's functions. He or she can view section B but not edit or delete anything there.

In a section A, the operators will add but not delete or edit the reports in section A.

It is like a tree of functions.

MUGOYA DIHFAHSIH

unread,
Sep 7, 2021, 10:08:43 AMSep 7
to django...@googlegroups.com
Hello Enoch.

Have you considered using permissions on this, i think it is the best way to implement this functionality.

You implement this on the views by checking if the user is authorized to access the view in this case the edit function.

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8a2e2746-5945-42e9-99a0-3da7c6a0e323n%40googlegroups.com.


--
Mugoya Dihfahsih
Software Engineer
Kampala, Uganda
Whatsapp: +256 751612792 
Profile: dihfahsih1.github.io/profile

Lalit Suthar

unread,
Sep 8, 2021, 1:10:18 AMSep 8
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages