Fix for "has permission" filter