has_perms(perm_list, obj=None)
Returns True
if the user has each of the specified permissions, where each perm is in the format "<app label>.<permission codename>"
. If the user is inactive, this method will always return False
.
If obj
is passed in, this method won’t check for permissions for the model, but for the specific object.
Please login to continue.