pub fn check_permissions(
perms: &[PermInfo],
session: &dyn Session,
) -> Result<()>Expand description
ExecCheckPermissions: an error for the first relation that the statement uses without the privileges that it needs. A relation of the query of a view counts as the owner of the view. A superuser has each privilege, and a relation that does not exist is not checked.
ยงErrors
permission denied for the relation, or the error of an ACL that is not correct.