Re:Roles and Permissions in python Django

35 views
Skip to first unread message

Daisi Caroline

unread,
Apr 1, 2023, 2:54:21 PM4/1/23
to Django users
Hello friends i am doing a django project and i am stack on roles and permissions.This is what i am supposed to do.

I am supposed to do the roles and permissions.
So I have done the roles but now permissions is the problem.
For example the organisation admin and the local admin when logged into the system they are supposed to see the dashboard.
Security personnel is supposed to only validate the invites.
Staff resident and Portal user are only supposed to create invites.
But in my case all of them when logged in are seeing the dashboard.

Anyone who can help in this please.we can connect.

Regards,
Daisi Caroline.

Muhammed Lawal

unread,
Apr 2, 2023, 4:53:31 AM4/2/23
to django...@googlegroups.com
Can you provide your Views code? By the way, if you are using DRF, you can use the "permission classes" or "permission decorators".
Best regards. 

--
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/13ea8217-134d-4b6b-b7f9-1b79517748d3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages