Re: permissions mapping

2021-09-07 Thread Lalit Suthar
https://docs.djangoproject.com/en/3.2/topics/auth/default/#permissions-and-authorization

On Tue, 7 Sept 2021 at 18:42, Ssentumbwe Enoch 
wrote:

> 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.
>
> --
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVExiK0LRQLKHN-azb085-XkwbnOkXQm_v8crLJB%2BYX%3DmQ%40mail.gmail.com.


Re: permissions mapping

2021-09-07 Thread MUGOYA DIHFAHSIH
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.

On Tue, 7 Sept 2021 at 16:12, Ssentumbwe Enoch 
wrote:

> 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.
>
> --
> 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+unsubscr...@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*

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP%3DJD9xu9yDvPAHZkw9yriwxmJq5-a_Y3mGYgO-fOGgOMGTZrw%40mail.gmail.com.


permissions mapping

2021-09-07 Thread Ssentumbwe Enoch
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. 

-- 
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+unsubscr...@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.