def get_user_perms(user, obj):
 check = ObjectPermissionChecker(user)
 return check.get_user_perms(obj)

def get_user_perms ( user , obj ) : check = ObjectPermissionChecker ( user ) return check . get_user_perms ( obj )
returns permissions for given user and object pair .