Hi,

We do in our applications pretty much same approach as Mike proposed in his
post. It's relatively efficient and works for both, UI and application side
pretty well and doesn't require building anything complex and pretty much
everything you need is already built-in in Django.



On Sun, Apr 21, 2019 at 5:12 AM Joel Mathew <j...@joel.su> wrote:

> I have an application for a hospital. There, I should be able to assign
> different roles like Doctor, Nurse, Attender, Auxillary Nurse, Pharmacist,
> Store Manager etc, each of would be having specific access to seperate
> areas (views), with some having restricted access. In addition, there are
> other hospitals who would be having no access to another hospital's
> records. All of these permissions should be customisable, and I should be
> able to create additional roles and permission groups for specific areas
> later (from within the application itself, in production). What would be
> the best solution to use? Is there a middleware which works well. I don't
> want to roll my own if I will be reinventing the wheel.
>
> Currently my application has no use permissions. But access to specific
> hospitals is being restricted by a model whoch stores hospital name, and
> user name.
> Sincerely yours,
>
>  Joel G Mathew
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA%3Diw_9BrOEh4Ss3X0g_EnaFyp1XTXij5DoZvva_XxwKVzXsGQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAA%3Diw_9BrOEh4Ss3X0g_EnaFyp1XTXij5DoZvva_XxwKVzXsGQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Jani Tiainen
Software wizard

https://blog.jani.tiainen.cc/

Always open for short term jobs or contracts to work with Django.

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91od2vbV7F0WwAVp6Eppqmmd5-NgZciO_04Tm%3D9x9FSJyvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to