Updated permission check.