code: def get_roles_for_permission(permission, brain_or_object):
      
      obj = get_object(brain_or_object)
      allowed = set(rolesForPermissionOn(permission, obj))
      return sorted(allowed)
docs: Get a list of granted roles for the given permission on the object.
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
      :returns: Roles for the given Permission
      :rtype: list