auth.backends.ModelBackend.get_all_permissions()

get_all_permissions(user_obj, obj=None)

Returns the set of permission strings the user_obj has, including both user permissions and group permissions. Returns an empty set if is_anonymous or is_active is False.

doc_Django
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.